django/tests/invalid_models_tests
Clifford Gama 74b31cd26b Fixed #32770 -- Added system check to ensure django.contrib.postgres is installed when using its features.
Added postgres.E005 to validate 'django.contrib.postgres' is in INSTALLED_APPS
when using:
* PostgreSQL-specific fields (ArrayField, HStoreField, range fields, SearchVectorField),
* PostgreSQL indexes (PostgresIndex and all subclasses), and
* ExclusionConstraint

The check provides immediate feedback during system checks rather than failing
later with obscure runtime and database errors.

Thanks to Simon Charette and Sarah Boyce for reviews.
2025-06-18 08:36:49 +02:00
..
__init__.py Deprecated load_app(). 2013-12-22 11:39:17 +01:00
test_backend_specific.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_custom_fields.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_deprecated_fields.py Fixed #32770 -- Added system check to ensure django.contrib.postgres is installed when using its features. 2025-06-18 08:36:49 +02:00
test_models.py Fixed #36273 -- Moved Index system checks from Model to Index.check(). 2025-05-14 16:00:53 +02:00
test_ordinary_fields.py Fixed #35815 -- Made system check accept db_default literals when DatabaseFeatures.supports_expression_defaults = False. 2024-11-11 16:05:05 +01:00
test_relative_fields.py Fixed #22977 -- Added system check for clashing managers and reverse related fields. 2025-03-31 22:20:43 +02:00