test_models#
get_models#
Source code in tests/unit/apps/core/models/test_models.py
test_model_ordering#
Check that all concrete models have a default ordering.
Subclasses that define their own Meta class do not automatically inherit meta attributes such as ordering. In such cases, either explicitly extend the base Meta class or manually define ordering in the new Meta class. See https://docs.djangoproject.com/en/5.0/topics/db/models/#meta-inheritance