Mariusz Felisiak
|
f69c7bbdce
|
Refs #29408 -- Cosmetic edits for validation of related fields and lookups in model Meta.ordering.
Follow up to 440505cb2c .
|
2019-03-01 19:38:21 +01:00 |
Hasan Ramezani
|
440505cb2c
|
Fixed #29408 -- Added validation of related fields and lookups in model Meta.ordering.
|
2019-03-01 17:09:33 +01:00 |
Sergey Fedoseev
|
1933e56eca
|
Removed uneeded generator expressions and list comprehensions.
|
2019-02-09 09:18:48 -05:00 |
Simon Charette
|
b181aba7dd
|
Refs #28478 -- Prevented database feature based skipping on tests disallowing queries.
Database features may require a connection to be established to determine
whether or not they are enabled.
|
2019-01-14 16:16:30 -05:00 |
Tim Graham
|
193c109327
|
Switched TestCase to SimpleTestCase where possible in Django's tests.
|
2018-11-27 08:58:44 -05:00 |
Nick Pope
|
c512912463
|
Refs #23801 -- Made integer field max_length warning show correct field type.
|
2018-11-23 14:40:46 -05:00 |
Hasan Ramezani
|
ec16588c27
|
Added test for Model._check_column_name_clashes().
|
2018-11-17 15:24:48 -05:00 |
Simon Charette
|
9142bebff2
|
Refs #11964 -- Changed CheckConstraint() signature to use keyword-only arguments.
Also renamed the `constraint` argument to `check` to better represent which
part of the constraint the provided `Q` object represents.
|
2018-10-02 10:53:04 -04:00 |
Simon Willison
|
586a9dc429
|
Fixed #26352 -- Made system check allow ManyToManyField to target the same model if through_fields differs.
|
2018-08-22 12:07:29 -04:00 |
Franck Michea
|
7def8bed58
|
Fixed #29698 -- Fixed Field._check_choices() crash on invalid choices.
|
2018-08-22 09:15:19 -04:00 |
Ian Foote
|
952f05a6db
|
Fixed #11964 -- Added support for database check constraints.
|
2018-07-10 15:32:33 -04:00 |
Tim Graham
|
c03e41712b
|
Refs #28748 -- Reallowed lazy model field choices.
Regression in 3aa9ab39cc .
|
2018-05-29 21:43:38 -04:00 |
Carlton Gibson
|
21fd8041c1
|
Refs #29358 -- Corrected wording in primary key check message.
|
2018-05-03 15:28:37 +02:00 |
Hasan Ramezani
|
816b8d9518
|
Fixed #29358 -- Added a system check to prohibit models with more than one primary_key field.
|
2018-05-03 09:08:29 +02:00 |
Brett Cannon
|
64b74804c5
|
Fixed #29334 -- Updated pypi.python.org URLs to pypi.org.
|
2018-04-17 20:24:27 -04:00 |
Tim Graham
|
5fa4f40f45
|
Fixed #29227 -- Allowed BooleanField to be null=True.
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
|
2018-03-20 12:10:10 -04:00 |
Mariusz Felisiak
|
362813d628
|
Fixed hanging indentation in various code.
|
2018-03-16 10:54:34 +01:00 |
François Freitag
|
3aa9ab39cc
|
Refs #28748 -- Reallowed lazy values in model field choices.
Regression in f9844f4841 .
Thanks Matthias Kestenholz for the report and suggestions.
|
2018-01-27 09:19:56 -05:00 |
François Freitag
|
f9844f4841
|
Fixed #28748 -- Made model field choices check more strict for named groups.
|
2018-01-24 10:34:24 -05:00 |
François Freitag
|
8cdeb8acfc
|
Added more tests for model field choices validation.
|
2018-01-24 10:27:27 -05:00 |
Дилян Палаузов
|
a38ae914d8
|
Fixed #28996 -- Simplified some boolean constructs and removed trivial continue statements.
|
2018-01-12 12:44:50 -05:00 |
shanghui
|
cc6bcc6ff5
|
Fixed #28867 -- Added system check for a model property that clashes with a related field accessor.
|
2018-01-03 10:34:31 -05:00 |
shanghui
|
b0a2a2b07e
|
Made a few cleanups to invalid_models_tests.test_models.
|
2017-12-29 10:32:01 -05:00 |
hui shang
|
f1aa58479c
|
Fixed #28714 -- Added system checks for invalid model field names in Meta.indexes.
Thanks Gabriel for the report and Adam Johnson for the review.
|
2017-12-27 18:56:24 -05:00 |
Adam Johnson
|
f816ceedf1
|
Made assertions in invalid_models_tests consistent.
|
2017-07-11 13:12:17 -04:00 |
Jon Dufresne
|
21046e7773
|
Fixed #28249 -- Removed unnecessary dict.keys() calls.
iter(dict) is equivalent to iter(dict.keys()).
|
2017-05-27 19:08:46 -04:00 |
Mariusz Felisiak
|
538bf43458
|
Fixed #27859 -- Ignored db_index for TextField/BinaryField on Oracle and MySQL.
Thanks Zubair Alam for the initial patch and Tim Graham for the review.
|
2017-05-23 17:02:40 +02:00 |
Carles Pina Estany
|
9f2e8b5bb7
|
Fixed #28120 -- Checked that CharField.max_length is not a boolean.
|
2017-04-24 18:49:31 -04:00 |
Adam Chainz
|
a452dddb25
|
Fixed #27904 -- Added a system check that Field.validators are callable.
|
2017-03-11 12:27:29 -05:00 |
Tim Graham
|
29f607927f
|
Fixed spelling of "nonexistent".
|
2017-02-03 08:01:45 -05:00 |
Tim Graham
|
7aba69145d
|
Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.
|
2017-01-20 08:17:20 -05:00 |
Simon Charette
|
9695b14982
|
Refs #23919 -- Removed str() conversion of type and method __name__.
|
2017-01-19 11:31:07 -05:00 |
Simon Charette
|
cecc079168
|
Refs #23919 -- Stopped inheriting from object to define new style classes.
|
2017-01-19 08:39:46 +01:00 |
Claude Paroz
|
c716fe8782
|
Refs #23919 -- Removed six.PY2/PY3 usage
Thanks Tim Graham for the review.
|
2017-01-18 16:21:28 +01:00 |
Claude Paroz
|
d7b9aaa366
|
Refs #23919 -- Removed encoding preambles and future imports
|
2017-01-18 09:55:19 +01:00 |
Tim Graham
|
9d0e8c1e7f
|
Refs #26320 -- Removed implicit OneToOnField parent_link per deprecation timeline.
|
2017-01-17 20:52:04 -05:00 |
Tim Graham
|
bcf3532ede
|
Refs #26154 -- Removed deprecated CommaSeparatedIntegerField.
|
2017-01-17 20:52:02 -05:00 |
Tim Graham
|
ddd3268975
|
Refs #21127 -- Required on_delete for ForeignKey/OneToOneField.
Per deprecation timeline.
|
2017-01-17 14:09:28 -05:00 |
Adam Chainz
|
391c450fba
|
Refs #25415 -- Made MySQL backend skip field validation of unsupported models.
|
2016-12-29 12:01:48 -05:00 |
Tim Graham
|
e3e80da7a5
|
Fixed #27651 -- Allowed M2M to concrete and proxy through model.
|
2016-12-28 12:48:17 -05:00 |
Lex Berezhny
|
1a9bd75bfa
|
Refs #27358 -- Fixed system check crash with an empty FileField.upload_to.
|
2016-11-30 10:07:42 -05:00 |
Henry Dang
|
7cddd8a02e
|
Fixed #27358 -- Added a system check to prevent FileField's upload_to from starting with a slash.
Thanks Frank Bijlsma for the initial patch.
|
2016-11-29 16:12:24 -05:00 |
Quentin Fulsher
|
f62abfc03d
|
Fixed #27295 -- Added a system check to prohibit model names that start or end with an underscore or contain double underscores.
|
2016-11-22 10:14:10 -05:00 |
za
|
321e94fa41
|
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
|
2016-11-10 21:30:21 -05:00 |
Michael Scott
|
ec9ed07488
|
Fixed #27188 -- Allowed using unique=True with FileField.
Thanks Tim Graham for the initial patch.
|
2016-10-28 20:11:03 -04:00 |
Tim Graham
|
e7abb5ba86
|
Fixed #27204 -- Made clashing m2m intermediary table checks ignore unmanaged models.
|
2016-09-09 19:18:37 -04:00 |
Tim Graham
|
02c276623d
|
Moved model_validation tests to invalid_models_tests.
|
2016-08-16 15:22:58 -04:00 |
Kevan Swanberg
|
17a0a6667c
|
Refs #26796 -- Fixed ManyToManyField's limit_choices_to warning without a through model.
|
2016-07-21 14:29:03 -04:00 |
Anderson Resende
|
ba53da894f
|
Fixed #26796 -- Added a system check for m2m fields with ignored limit_choices_to.
|
2016-07-08 19:37:40 -04:00 |
Andrew Nester
|
baff4dd37d
|
Fixed #25292 -- Fixed crash in ManyToManyField.through_fields check.
|
2016-06-30 08:53:38 -04:00 |