Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/invalid_models_tests
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Fixed #25417 -- Added a field check for invalid ↵Simon Charette2015-10-271-68/+0
| | | | | | default values." This reverts commit 71ebcb85b931f43865df5b322b2cf06d3da23f69.
* Fixed #25560 -- Made empty string related_name invalid.Simon Charette2015-10-161-0/+1
| | | | | Thanks to Ali Lotfi for the initial report and patch and Tim Graham for the review.
* Refs #25535 -- Minor edits to ForeignObject check changes.Tim Graham2015-10-141-17/+17
|
* Fixed #25535 -- Made ForeignObject checks less strict.Antoine Catton2015-10-131-3/+80
| | | | | Check that the foreign object `from_fields` are a subset of any unique constraints on the foreign model.
* Fixed #25503 -- Fixed system check crash on ForeignKey ↵Mariusz Felisiak2015-10-071-26/+30
| | | | to abstract model.
* Fixed #25417 -- Added a field check for invalid default ↵Simon Charette2015-09-181-0/+68
| | | | values.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-13/+20
|
* Fixed #14217 -- Added validation for field name ↵sarthakmeh2015-08-251-0/+19
| | | | collision when using model inheritance.
* Fixed #25172 -- Fixed check framework to work with ↵Ion Scerbatiuc2015-08-131-16/+10
| | | | multiple databases.
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-282-70/+169
| | | | on_delete for ForeignKey/OneToOneField
* Fixed #25055 -- Made m2m long name testing friendlier ↵Michael Manfre2015-07-031-11/+15
| | | | for 3rd party databases.
* Fixed #25016 -- Reallowed non-ASCII values for ↵薛丞宏2015-06-261-2/+9
| | | | ForeignKey.related_name on Python 3.
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-202-6/+7
|
* Fixed #24818 -- Prevented models.CharField from ↵Alasdair Nicol2015-05-191-0/+16
| | | | accepting a string as max_length
* Switched to use assertEqual instead of assertEquals.Berker Peksag2015-03-221-2/+2
|
* Fixed #24479 -- Added system check to prevent both ↵Jon Dufresne2015-03-211-0/+44
| | | | ordering and order_wrt.
* Removed unnecessary parentheses in model check messages.Tim Graham2015-02-091-29/+30
|
* Fixed #24249 -- Improved field shadowing validation in ↵Aron Podrigal2015-02-091-0/+25
| | | | model multi-inheritance.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-062-2/+2
|
* Removed IPAddressField per deprecation timeline; refs ↵Tim Graham2015-01-191-0/+22
| | | | #20439.
* Removed BaseDatabaseValidation.validate_field() per ↵Tim Graham2015-01-171-31/+0
| | | | deprecation timeline.
* Fixed #23801 -- Added warning when max_length is used ↵MattBlack852014-11-271-0/+19
| | | | with IntegerField
* Fixed #23761 -- Added test for MySQL validator and ↵Adam DePue2014-11-131-0/+20
| | | | | | | | | db_type is None. The issue was fixed on master in e9103402c0fa873aea58a6a11dba510cd308cb84 so this just forwardports the test and release notes from stable/1.7.x. Forwardport of 2d12a59938 from stable/1.7.x
* Fixed #23684 -- Used correct package name for Pillow in ↵Nicholas Serra2014-10-191-1/+1
| | | | Error hint.
* Fixed #22064 -- Add check for related_nameAndré Ericson2014-10-051-0/+67
| | | | | | | | Validates that related_name is a valid Python id or ends with a '+' and it's not a keyword. Without a check it passed silently leading to unpredictable problems. Thanks Konrad Świat for the initial work.
* Fixed name of database connection featureShai Berger2014-07-141-1/+1
|
* Fixed #19671 -- Added warnings that null and validators ↵Anubhav Joshi2014-07-091-1/+30
| | | | | | are ignored for ManyToManyField. Thanks Loic Bistuer and Tim Graham for help and review.
* Added a unit test to ensure models cannot be ordered by ↵Daniel Pyrathon2014-07-081-0/+21
| | | | a M2M field.
* Fixed problem introduced with #refs 13711.Anubhav Joshi2014-06-231-1/+1
|
* Fixed #13711 -- Model check added to ensure that ↵Anubhav Joshi2014-06-171-1/+142
| | | | | | auto-generated column name is within limits of the database. Thanks russellm for report and Tim Graham for review.
* Fixed #22711 -- Adjusted ordering checks to allow ↵Vincent-Vega2014-06-011-0/+34
| | | | | | implicit relation fields. refs #19195.
* Fixed several flake8 errors, including one where a test ↵Alex Gaynor2014-05-171-2/+2
| | | | wouldn't be run
* Fixed #21905 -- Add info message if DateField or ↵Markus Holtermann2014-05-161-24/+152
| | | | TimeField use a fixed value
* Refs #21798 - Modified error number to provide room for ↵Russell Keith-Magee2014-05-161-1/+1
| | | | future expansion.
* Fixed #21798 -- Added check for DateTime mutually ↵Daniel Pyrathon2014-05-161-0/+28
| | | | | | | | exclusive options Added DateTimeCheckMixin to avoid the use of default, auto_now, and auto_now_add options together. Added the fields.E151 Error that is raised if one or more of these options are used together.
* Fixed #22356 -- Added a check to make sure ↵Marc Egli2014-04-141-0/+24
| | | | unique_together fields are local.
* Removed PIL compatability layer per deprecation timeline.Tim Graham2014-03-211-3/+2
| | | | refs #19934.
* Flake8 correctionsShai Berger2014-03-121-1/+0
|
* Fixed #22217 - ManyToManyField.through_fields fixes.Akis Kesoglou2014-03-111-17/+69
| | | | | | - Docs description of arguments mix up. - Keep it from erroneously masking E332 check. - Add checks E338 and E339, tweak message of E337.
* Fixed #14549 - Removed restriction of single FKs on ↵Akis Kesoglou2014-03-051-3/+89
| | | | | | | intermediary tables Thanks to Loic Bistuer for review. Minor changes to error messages done by committer.
* Edited model and field checks for grammar and consistency.Russell Keith-Magee2014-03-033-253/+238
|
* Edited model check messages for grammar and consistency.Russell Keith-Magee2014-03-031-62/+58
|
* Edited MySQL-specific check messages for grammar and ↵Russell Keith-Magee2014-03-031-3/+2
| | | | consistency.
* Fixed #22172 -- Allowed index_together to be a single ↵Anubhav Joshi2014-03-011-4/+17
| | | | | | list (rather than list of lists).. Thanks EmilStenstrom for the suggestion.
* Fixed #22047 -- detecting related_name clash with ↵Christopher Medrela2014-02-151-0/+29
| | | | | | inheritance Thanks to mondone for fruitful colaboration.
* Fixed #17673 -- Forbid field shadowing.Christopher Medrela2014-02-101-20/+130
| | | | Thanks Anssi Kääriäinen for the suggestion.
* Removed a stray new line which upset flake8Alex Gaynor2014-01-201-1/+0
|
* Fixed two test failures under OracleShai Berger2014-01-201-1/+6
|
* Removed an inactive system check for upload_to.Russell Keith-Magee2014-01-201-16/+0
| | | | Thanks to Simon Charette for the eagle eyes.
* Fixed #16905 -- Added extensible checks (nee validation) ↵Russell Keith-Magee2014-01-208-581/+1874
| | | | | | | | | | | framework 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.