summaryrefslogtreecommitdiff
path: root/tests/model_fields/models.py
AgeCommit message (Collapse)Author
2015-01-07Refs #2443 -- Allowed creation of objects with NULL DurationFieldsMichał Modzelewski
2015-01-07Fixed #24078 -- Removed empty strings from GenericIPAddressFieldJosh Smeaton
2015-01-06Fixed #12663 -- Formalized the Model._meta API for retrieving fields.Daniel Pyrathon
Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
2015-01-06Removed warning handling that should have been removed in refs #23891.Tim Graham
2014-12-30Applied ignore_warnings to Django testsClaude Paroz
2014-12-20Fixed #2443 -- Added DurationField.Marc Tamlyn
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.
2014-12-12Fixed #23455 -- Accept either bytes or text for related_name, convert to text.Carl Meyer
2014-09-16Fixed #19463 -- Added UUIDFieldMarc Tamlyn
Uses native support in postgres, and char(32) on other backends.
2014-07-31Fixed flake8 warnings.Tim Graham
2014-07-30Fixed the previous commit for Python3.Florian Apolloner
2014-07-30Fixed #23112 -- Field.get_choices tries to index an iterableareski
2014-06-23Created import-time test temp dirs in known locationClaude Paroz
Refs #17215. In the same spirit as 5de31cb8cb.
2014-05-16Fixed #18389 -- Fixed the way contribute_to_class is calledVlad Starostin
Now this method is only called only if the object is an instance. This allows to have field classes as model class attributes.
2014-04-26Fix many many typos in comments throughout the codebaseAlex Gaynor
2014-03-25Fixed #12030 -- Validate integer field range at the model level.Simon Charette
Thanks to @timgraham for the review.
2014-03-21Removed PIL compatability layer per deprecation timeline.Tim Graham
refs #19934.
2014-03-12Fixed #20292: Pass datetime objects (not formatted dates) as params to OracleShai Berger
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.
2014-03-12Flake8 correctionsShai Berger
2014-03-10Fixed #22210 -- Saving model instances to non-related fields.Daniel Pyrathon
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.
2014-02-15Fixed #19299 -- Fixed Nullification of Foreign Keys To CharFieldsAlbert Wang
Thanks tunixman for the report and Baptiste Mispelon and Shai Berger for reviews.
2013-10-21Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol
2013-10-04Fixed #21217 -- Avoid connecting `(pre|post)_init` signals to abstract senders.Simon Charette
2013-09-28Fixed #20439 -- Started deprecation of IPAddressFieldErik Romijn
2013-08-15Fixed #20895 -- Made check management command warn if a BooleanField does ↵Alasdair Nicol
not have a default value Thanks to Collin Anderson for the suggestion and Tim Graham for reviewing the patch.
2013-05-14Fixed #19934 - Use of Pillow is now preferred over PIL.Daniel Lindsley
This starts the deprecation period for PIL (support to end in 1.8).
2013-03-02Add a BinaryField model fieldClaude Paroz
Thanks Michael Jung, Charl Botha and Florian Apolloner for review and help on the patch.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner