Set the app label on all test models.

Review Request #10571 — Created May 30, 2019 and submitted — Latest diff uploaded

Information

Django Evolution
master

Reviewers

This introduces a new BaseTestModel that sets the app label,
preventing those models from being registered under the
django_evolution app. While we try to do this during the test app
setup phase, it doesn't catch the models that are simply defined within
tests, requiring that we set these correctly.

Unit tests pass on all supported versions.

Changes between revision 1 and 2

orig
1
2

Commits

Summary ID Author
Set the app label on all test models.
This introduces a new `BaseTestModel` that sets the app label, preventing those models from being registered under the `django_evolution` app. While we try to do this during the test app setup phase, it doesn't catch the models that are simply defined within tests, requiring that we set these correctly.
ac72c3e147c8af4e67ac1e4c749ce631c63700e9 Christian Hammond
Set the app label on all test models.
This introduces a new `BaseTestModel` that sets the app label, preventing those models from being registered under the `django_evolution` app. While we try to do this during the test app setup phase, it doesn't catch the models that are simply defined within tests, requiring that we set these correctly.
f73ce739fba392307122813c62f33101f4c9a4c5 Christian Hammond
django_evolution/tests/models.py
Loading...