summaryrefslogtreecommitdiff
path: root/tests/invalid_models_tests/test_models.py
AgeCommit message (Collapse)Author
2018-11-17Added test for Model._check_column_name_clashes().Hasan Ramezani
2018-10-02Refs #11964 -- Changed CheckConstraint() signature to use keyword-only ↵Simon Charette
arguments. Also renamed the `constraint` argument to `check` to better represent which part of the constraint the provided `Q` object represents.
2018-08-22Fixed #26352 -- Made system check allow ManyToManyField to target the same ↵Simon Willison
model if through_fields differs.
2018-07-10Fixed #11964 -- Added support for database check constraints.Ian Foote
2018-05-03Refs #29358 -- Corrected wording in primary key check message.Carlton Gibson
2018-05-03Fixed #29358 -- Added a system check to prohibit models with more than one ↵Hasan Ramezani
primary_key field.
2018-01-12Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵Дилян Палаузов
continue statements.
2018-01-03Fixed #28867 -- Added system check for a model property that clashes with a ↵shanghui
related field accessor.
2017-12-29Made a few cleanups to invalid_models_tests.test_models.shanghui
2017-12-27Fixed #28714 -- Added system checks for invalid model field names in ↵hui shang
Meta.indexes. Thanks Gabriel for the report and Adam Johnson for the review.
2017-07-11Made assertions in invalid_models_tests consistent.Adam Johnson
2017-05-27Fixed #28249 -- Removed unnecessary dict.keys() calls.Jon Dufresne
iter(dict) is equivalent to iter(dict.keys()).
2017-02-03Fixed spelling of "nonexistent".Tim Graham
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Refs #26320 -- Removed implicit OneToOnField parent_link per deprecation ↵Tim Graham
timeline.
2016-12-28Fixed #27651 -- Allowed M2M to concrete and proxy through model.Tim Graham
2016-11-22Fixed #27295 -- Added a system check to prohibit model names that start or ↵Quentin Fulsher
end with an underscore or contain double underscores.
2016-09-09Fixed #27204 -- Made clashing m2m intermediary table checks ignore unmanaged ↵Tim Graham
models.
2016-08-16Moved model_validation tests to invalid_models_tests.Tim Graham
2016-06-10Fixed #12810 -- Added a check for clashing ManyToManyField.db_table names.Berker Peksag
2016-04-22Fixed #26320 -- Deprecated implicit OneToOnField parent_link.Tim Graham
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-02-12Removed unneeded hint=None/obj=None in system check messages.Tim Graham
2016-01-06Fixed #25746 -- Isolated inlined test models registration.Simon Charette
Thanks to Tim for the review.
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
2015-08-25Fixed #14217 -- Added validation for field name collision when using model ↵sarthakmeh
inheritance.
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-03Fixed #25055 -- Made m2m long name testing friendlier for 3rd party databases.Michael Manfre
2015-03-22Switched to use assertEqual instead of assertEquals.Berker Peksag
2015-03-21Fixed #24479 -- Added system check to prevent both ordering and order_wrt.Jon Dufresne
2015-02-09Removed unnecessary parentheses in model check messages.Tim Graham
2015-02-09Fixed #24249 -- Improved field shadowing validation in model multi-inheritance.Aron Podrigal
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-07-14Fixed name of database connection featureShai Berger
2014-07-08Added a unit test to ensure models cannot be ordered by a M2M field.Daniel Pyrathon
2014-06-23Fixed problem introduced with #refs 13711.Anubhav Joshi
2014-06-17Fixed #13711 -- Model check added to ensure that auto-generated column name ↵Anubhav Joshi
is within limits of the database. Thanks russellm for report and Tim Graham for review.
2014-06-01Fixed #22711 -- Adjusted ordering checks to allow implicit relation fields.Vincent-Vega
refs #19195.
2014-04-14Fixed #22356 -- Added a check to make sure unique_together fields are local.Marc Egli
2014-03-03Edited model and field checks for grammar and consistency.Russell Keith-Magee
2014-03-03Edited model check messages for grammar and consistency.Russell Keith-Magee
2014-03-01Fixed #22172 -- Allowed index_together to be a single list (rather than list ↵Anubhav Joshi
of lists).. Thanks EmilStenstrom for the suggestion.
2014-02-10Fixed #17673 -- Forbid field shadowing.Christopher Medrela
Thanks Anssi Kääriäinen for the suggestion.
2014-01-20Fixed #16905 -- Added extensible checks (nee validation) frameworkRussell Keith-Magee
This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.