Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/model_fields/models.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-7/+9
| | | | on_delete for ForeignKey/OneToOneField
* Fixed #25129 -- Made model instance defaults work with ↵Tim Graham2015-07-211-1/+1
| | | | migrations (refs #24919).
* Fixed #16501 -- Added an allow_unicode parameter to ↵Edward Henderson2015-07-171-0/+4
| | | | | | SlugField. Thanks Flavio Curella and Berker Peksag for the initial patch.
* [1.8.x] Refs #24698, #24712 -- Forwardported ↵Abhaya Agarwal2015-05-131-0/+8
| | | | | | | | ForeignKey.get_db_prep_value() test and release notes. Fixed in master by b68212f539f206679580afbfd008e7d329c9cd31. Forwardport of 290c9d665490d80b0a1b648fb022190d7dc375fc from stable/1.8.x
* Fixed #24215 -- Refactored lazy model operationsAlex Hill2015-03-251-11/+0
| | | | | | | This adds a new method, Apps.lazy_model_operation(), and a helper function, lazy_related_operation(), which together supersede add_lazy_relation() and make lazy model operations the responsibility of the App registry. This system no longer uses the class_prepared signal.
* Guaranteed removal of temporary files during tests.Aymeric Augustin2015-02-231-1/+1
| | | | | | | Dropped the DJANGO_TEST_TEMP_DIR environment variable. Before this change, proper removal depended on the developer passing dir=os.environ['DJANGO_TEST_TMP_DIR'] to tempfile functions.
* Fixed #24376 -- added verbose_name arg to UUIDFieldMichael Angeletti2015-02-211-0/+2
|
* Fixed #24343 -- Ensure db converters are used for ↵Marc Tamlyn2015-02-201-0/+4
| | | | | | foreign keys. Joint effort between myself, Josh, Anssi and Shai.
* Refs #24215 -- Prevented pending lookup pollution by ↵Simon Charette2015-02-121-0/+11
| | | | abstract models.
* Fixed E265 comment styleCollin Anderson2015-02-061-1/+1
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-10/+12
|
* Removed IPAddressField per deprecation timeline; refs ↵Tim Graham2015-01-191-11/+9
| | | | #20439.
* Refs #2443 -- Allowed creation of objects with NULL ↵Michał Modzelewski2015-01-071-0/+4
| | | | DurationFields
* Fixed #24078 -- Removed empty strings from ↵Josh Smeaton2015-01-071-0/+4
| | | | GenericIPAddressField
* Fixed #12663 -- Formalized the Model._meta API for ↵Daniel Pyrathon2015-01-071-0/+51
| | | | | | | retrieving fields. Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
* Removed warning handling that should have been removed ↵Tim Graham2015-01-071-5/+1
| | | | in refs #23891.
* Applied ignore_warnings to Django testsClaude Paroz2014-12-301-2/+3
|
* Fixed #2443 -- Added DurationField.Marc Tamlyn2014-12-201-0/+4
| | | | | | | | | | | A field for storing periods of time - modeled in Python by timedelta. It is stored in the native interval data type on PostgreSQL and as a bigint of microseconds on other backends. Also includes significant changes to the internals of time related maths in expressions, including the removal of DateModifierNode. Thanks to Tim and Josh in particular for reviews.
* Fixed #23455 -- Accept either bytes or text for ↵Carl Meyer2014-12-121-1/+1
| | | | related_name, convert to text.
* Fixed #19463 -- Added UUIDFieldMarc Tamlyn2014-09-161-0/+13
| | | | Uses native support in postgres, and char(32) on other backends.
* Fixed flake8 warnings.Tim Graham2014-07-311-1/+1
|
* Fixed the previous commit for Python3.Florian Apolloner2014-07-301-2/+3
|
* Fixed #23112 -- Field.get_choices tries to index an iterableareski2014-07-301-0/+23
|
* Created import-time test temp dirs in known locationClaude Paroz2014-06-231-1/+1
| | | | Refs #17215. In the same spirit as 5de31cb8cb.
* Fixed #18389 -- Fixed the way contribute_to_class is calledVlad Starostin2014-05-161-1/+11
| | | | | Now this method is only called only if the object is an instance. This allows to have field classes as model class attributes.
* Fix many many typos in comments throughout the codebaseAlex Gaynor2014-04-261-1/+1
|
* Fixed #12030 -- Validate integer field range at the ↵Simon Charette2014-03-251-1/+17
| | | | | | model level. Thanks to @timgraham for the review.
* Removed PIL compatability layer per deprecation timeline.Tim Graham2014-03-211-6/+4
| | | | refs #19934.
* Fixed #20292: Pass datetime objects (not formatted ↵Shai Berger2014-03-121-0/+6
| | | | | | | | | | | dates) as params to Oracle This seems worthwhile in its own right, but also works around an Oracle bug (in versions 10 -- 11.1) where the use of Unicode would reset the date/time formats, causing ORA-01843 errors. Thanks Trac users CarstenF for the report, jtiai for the initial patch, and everyone who contributed to the discussion on the ticket.
* Flake8 correctionsShai Berger2014-03-121-0/+1
|
* Fixed #22210 -- Saving model instances to non-related ↵Daniel Pyrathon2014-03-101-0/+3
| | | | | | | | | | | fields. Previously, saving a model instance to a non-related field (in particular a FloatField) would silently convert the model to an Integer (the pk) and save it. This is undesirable behaviour, and likely to cause confusion so the validatio has been hardened. Thanks to @PirosB3 for the patch and @jarshwah for the review.
* Fixed #19299 -- Fixed Nullification of Foreign Keys To ↵Albert Wang2014-02-151-0/+9
| | | | | | | CharFields Thanks tunixman for the report and Baptiste Mispelon and Shai Berger for reviews.
* Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol2013-10-211-6/+6
|
* Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol2013-10-181-2/+2
|
* Fixed #21217 -- Avoid connecting `(pre|post)_init` ↵Simon Charette2013-10-041-11/+38
| | | | signals to abstract senders.
* Fixed #20439 -- Started deprecation of IPAddressFieldErik Romijn2013-09-281-1/+4
|
* Fixed #20895 -- Made check management command warn if a ↵Alasdair Nicol2013-08-161-2/+2
| | | | | | | BooleanField does not have a default value Thanks to Collin Anderson for the suggestion and Tim Graham for reviewing the patch.
* Fixed #19934 - Use of Pillow is now preferred over PIL.Daniel Lindsley2013-05-151-11/+6
| | | | This starts the deprecation period for PIL (support to end in 1.8).
* Add a BinaryField model fieldClaude Paroz2013-03-021-0/+4
| | | | | Thanks Michael Jung, Charl Botha and Florian Apolloner for review and help on the patch.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-261-0/+200