summaryrefslogtreecommitdiff
path: root/tests/introspection/models.py
AgeCommit message (Collapse)Author
2025-11-23Refs #21961 -- Added DatabaseFeatures.supports_on_delete_db_(cascade/null) ↵Tim Graham
feature flags. Needed on MongoDB. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2025-10-31Fixed #36661 -- Added introspection of database-level delete options.Mariusz Felisiak
2024-03-01Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition.Simon Charette
Once the deprecation period ends CheckConstraint.check() can become the documented method that performs system checks for BaseConstraint subclasses.
2022-12-28Fixed #18468 -- Added support for comments on columns and tables.kimsoungryoul
Thanks Jared Chung, Tom Carrick, David Smith, Nick Pope, and Mariusz Felisiak for reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk>
2022-07-11Refs #27236 -- Removed usage of Meta.index_together from ↵David Wobrock
indexes/introspection test models.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-02-17Fixed #32453 -- Added introspection of unique constraint field ordering on ↵Hannes Ljungberg
SQLite. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-04-15Removed unused __str__() methods in tests models.Author: Mads Jensen
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com>
2019-08-26Refs #30591 -- Fixed introspection of check and unique column constraints on ↵Mariusz Felisiak
MariaDB. Unnamed unique and check columns constraints have the same name as a column. Ensure uniqueness by using custom names. Thanks Adnan Umer for the report.
2019-08-12Refs #11964 -- Made constraint support check respect required_db_features.Simon Charette
This will notably silence the warnings issued when running the test suite on MySQL.
2019-08-02Fixed #30661 -- Added models.SmallAutoField.Nick Pope
2019-03-13Fixed #30183 -- Added introspection of inline SQLite constraints.Paveł Tyślacki
2018-12-27Followed style guide for model attribute ordering.Matt Wiens
2018-10-21Fixed #29870 -- Added DurationField introspection for Oracle and PostgreSQL.Mariusz Felisiak
Thanks Tim Graham for the review.
2017-05-15Fixed #28197 -- Fixed introspection of index field ordering on PostgreSQL.Tim Schneider
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-09-09Refs #25415 -- Fixed invalid models in the test suite.Adam Chainz
2016-08-20Fixed #27096 -- Fixed primary key introspection for sqlite3 backendClaude Paroz
2016-03-02Fixed #26304 -- Ignored unmanaged through model in table introspection.Matthew Schinckel
2015-12-25Fixed #14286 -- Added models.BigAutoField.Alexander Sosnovskiy
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-01-12Fixed #17785 -- Preferred column names in get_relations introspectionClaude Paroz
Thanks Thomas Güttler for the report and the initial patch, and Tim Graham for the review.
2014-08-27Fixed #23357 -- Added small int introspection support to MySQL backend.Jon Dufresne
In the MySQL backend, updated the can_introspect_small_integer feature flag to True. In data_types_reverse, map FIELD_TYPE.SHORT to a SmallIntegerField. Added test to verify introspecting SmallIntegerFields and fixed existing tests influenced by this change.
2013-03-02Add introspection support for BinaryFieldClaude Paroz
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner