summaryrefslogtreecommitdiff
path: root/tests/model_options
Commit message (Collapse)AuthorAgeFilesLines
* Refs #27236 -- Reverted AlterIndexTogether deprecation.Mariusz Felisiak2022-07-261-20/+0
| | | | This partly reverts a6385b382e05a614a99e5a5913d8e631823159a2.
* Fixed #27236 -- Deprecated Meta.index_together in favor of Meta.indexes.David Wobrock2022-07-121-0/+20
| | | | This also deprecates AlterIndexTogether migration operation.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-075-81/+99
|
* Fixed #32620 -- Allowed subclasses of Big/SmallAutoField for DEFAULT_AUTO_FIELD.Adam Johnson2021-04-081-0/+13
|
* Fixed #31007 -- Allowed specifying type of auto-created primary keys.Tom Forbes2020-12-152-0/+126
| | | | | This also changes the default type of auto-created primary keys for new apps and projects to BigAutoField.
* Fixed #30023 -- Prevented SQLite schema alterations while foreign key checks ↵Simon Charette2018-12-151-2/+5
| | | | | | | | | | | | | are enabled. Prior to this change foreign key constraint references could be left pointing at tables dropped during operations simulating unsupported table alterations because of an unexpected failure to disable foreign key constraint checks. SQLite3 does not allow disabling such checks while in a transaction so they must be disabled beforehand. Thanks ezaquarii for the report and Carlton and Tim for the review.
* Refs #25530 -- Tracked references of deferred SQL statements.Simon Charette2017-06-211-1/+1
|
* Sorted imports per isort 4.2.9.Tim Graham2017-06-011-1/+0
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Refs #26230 -- Removed support for model name query lookups when using ↵Tim Graham2017-01-171-11/+4
| | | | | | Meta.default_related_name. Per deprecation timeline.
* Fixed E305 flake8 warnings.Ramin Farajpour Cami2016-11-141-0/+1
|
* Fixed E128 flake8 warnings in tests/.Tim Graham2016-04-081-2/+1
|
* Fixed #26230 -- Made default_related_name affect related_query_name.chenesan2016-02-271-0/+16
|
* Removed try/fail antipattern from model_options tests.Tim Graham2016-02-251-29/+12
|
* Fixed many spelling mistakes in code, comments, and docs.Josh Soref2015-12-031-1/+1
|
* Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella2015-07-271-3/+3
| | | | ForeignKey/OneToOneField
* Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen2015-03-251-2/+2
| | | | | | | | Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-063-3/+5
|
* Replaced DatabaseCreation sql methods by schema editor equivalentsClaude Paroz2014-12-231-5/+4
| | | | | Also used schema editor in migrate to sync unmigrated apps (sync_apps). Refs #22340. Thanks Tim Graham for the review.
* Fixed #22778 -- Added a model Meta option to define default_related_name.Renaud Parent2014-06-182-0/+87
| | | | Thanks jorgecarleitao and mmardini for reviews.
* Created a new tests folder (`model_options`).Moayad Mardini2014-06-114-0/+176
And moved `tablespaces` option tests to it. The new folder can be used to test models/options, like the new option added in refs #22778.