Opened 10 years ago
Last modified 10 years ago
#24812 closed Bug
RuntimeWarning in schema tests about reloading models — at Initial Version
Reported by: | Tim Graham | Owned by: | nobody |
---|---|---|---|
Component: | Migrations | Version: | 1.8 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Warning should be fixed or silenced.
$ python -Wall runtests.py schema /home/tim/code/django/django/db/models/base.py:279: RuntimeWarning: Model 'localbookwithm2m_tags.schema' was already registered. Reloading models is not advised as it can lead to inconsistencies, most notably with related models. new_class._meta.apps.register_model(new_class._meta.app_label, new_class) ./home/tim/code/django/django/db/models/base.py:279: RuntimeWarning: Model 'localbookwithm2m_tags.schema' was already registered. Reloading models is not advised as it can lead to inconsistencies, most notably with related models. new_class._meta.apps.register_model(new_class._meta.app_label, new_class) ..../home/tim/code/django/django/db/models/base.py:279: RuntimeWarning: Model 'localauthorwithm2m_tags.schema' was already registered. Reloading models is not advised as it can lead to inconsistencies, most notably with related models. new_class._meta.apps.register_model(new_class._meta.app_label, new_class) .sss/home/tim/code/django/django/db/models/base.py:279: RuntimeWarning: Model 'localauthorwithm2m_tags.schema' was already registered. Reloading models is not advised as it can lead to inconsistencies, most notably with related models. new_class._meta.apps.register_model(new_class._meta.app_label, new_class) ./home/tim/code/django/django/db/models/base.py:279: RuntimeWarning: Model 'localbookwithm2m_tags.schema' was already registered. Reloading models is not advised as it can lead to inconsistencies, most notably with related models. new_class._meta.apps.register_model(new_class._meta.app_label, new_class) ./home/tim/code/django/django/db/models/base.py:279: RuntimeWarning: Model 'localbookwithm2m_tags.schema' was already registered. Reloading models is not advised as it can lead to inconsistencies, most notably with related models. new_class._meta.apps.register_model(new_class._meta.app_label, new_class) /home/tim/code/django/django/db/models/base.py:279: RuntimeWarning: Model 'localbookwithm2m_uniques.schema' was already registered. Reloading models is not advised as it can lead to inconsistencies, most notably with related models. new_class._meta.apps.register_model(new_class._meta.app_label, new_class) ./home/tim/code/django/django/db/models/base.py:279: RuntimeWarning: Model 'localbookwithm2m_tags.schema' was already registered. Reloading models is not advised as it can lead to inconsistencies, most notably with related models. new_class._meta.apps.register_model(new_class._meta.app_label, new_class) /home/tim/code/django/django/db/models/base.py:279: RuntimeWarning: Model 'localbookwithm2m_uniques.schema' was already registered. Reloading models is not advised as it can lead to inconsistencies, most notably with related models. new_class._meta.apps.register_model(new_class._meta.app_label, new_class)
There is also one warning on the stable/1.7.x branch.
Note:
See TracTickets
for help on using tickets.