Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/model_fields
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed #19463 -- Added UUIDFieldMarc Tamlyn2014-09-162-0/+102
| | | | Uses native support in postgres, and char(32) on other backends.
* Removed code that assumed BooleanField could be null.Tim Graham2014-08-051-3/+0
| | | | Such a field will no longer pass model validation.
* 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-302-1/+50
|
* Fixed flake8 errors.Tim Graham2014-07-301-1/+1
|
* Fixed #23098 -- Checked that lazy choices are not ↵Florian Apolloner2014-07-271-0/+7
| | | | | | evaluated too soon Thanks Matthieu Agopian for the report.
* Created import-time test temp dirs in known locationClaude Paroz2014-06-231-1/+1
| | | | Refs #17215. In the same spirit as 5de31cb8cb.
* Fixed a few ResourceWarning in the test suite. Refs #22680.Loic Bistuer2014-05-251-0/+2
|
* 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.
* Replaced vendor checks by three feature flags.Aymeric Augustin2014-05-081-4/+1
|
* Fix many many typos in comments throughout the codebaseAlex Gaynor2014-04-261-1/+1
|
* Fixed queries that may return unexpected results on ↵Erik Romijn2014-04-221-1/+33
| | | | | | MySQL due to typecasting. This is a security fix; disclosure to follow shortly.
* Used more specific test assertions.Aymeric Augustin2014-04-091-1/+1
|
* Fixed #12030 -- Validate integer field range at the ↵Simon Charette2014-03-252-26/+101
| | | | | | model level. Thanks to @timgraham for the review.
* Removed PIL compatability layer per deprecation timeline.Tim Graham2014-03-212-14/+12
| | | | refs #19934.
* Skip test for saving microseconds on backends which do ↵Shai Berger2014-03-121-0/+1
| | | | not support it.
* Fixed #20292: Pass datetime objects (not formatted ↵Shai Berger2014-03-122-1/+18
| | | | | | | | | | | 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 test failure on Oracle: ↵Shai Berger2014-03-121-3/+15
| | | | | | model_fields.tests.test_float_validates_object Failing test introduced in fix for refs #22210.
* Fixed #22210 -- Saving model instances to non-related ↵Daniel Pyrathon2014-03-102-1/+14
| | | | | | | | | | | 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 #22206 -- Passed models.TextField.max_length to ↵Chris Wilson2014-03-051-0/+15
| | | | forms.CharField.maxlength
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-1/+1
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Fixed #19299 -- Fixed Nullification of Foreign Keys To ↵Albert Wang2014-02-152-2/+22
| | | | | | | CharFields Thanks tunixman for the report and Baptiste Mispelon and Shai Berger for reviews.
* Fixed #16905 -- Added extensible checks (nee validation) ↵Russell Keith-Magee2014-01-201-0/+5
| | | | | | | | | | | 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.
* Fixed #21512 -- Added more complete information about ↵Vajrasky Kok2013-11-261-8/+8
| | | | Pillow and PIL in model_fields and model_forms tests.
* PEP8 cleanupJason Myers2013-11-031-0/+8
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol2013-10-211-6/+6
|
* Removed unused local variables in tests.Tim Graham2013-10-192-2/+2
|
* Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol2013-10-181-2/+2
|
* Fixed #21217 -- Avoid connecting `(pre|post)_init` ↵Simon Charette2013-10-042-14/+41
| | | | signals to abstract senders.
* Fixed #20439 -- Started deprecation of IPAddressFieldErik Romijn2013-09-282-4/+10
|
* Removed references to django.utils.unittest which is ↵Tim Graham2013-09-031-2/+1
| | | | PendingDeprecation
* Fixed #20999 - Allow overriding formfield class with ↵Carl Meyer2013-08-311-7/+5
| | | | | | choices, without subclass restrictions. Refs #18162. Thanks claudep and mjtamlyn for review.
* Altered test introduced in f19a3669b8 for the sake of ↵Simon Charette2013-08-291-4/+9
| | | | readability. refs #14786
* Fixed #14786 -- Fixed get_db_prep_lookup calling ↵Tim Graham2013-08-291-0/+18
| | | | | | | get_prep_value twice if prepared is False. Thanks homm for the report and Aramgutang and lrekucki for work on the patch.
* Fixed #20895 -- Made check management command warn if a ↵Alasdair Nicol2013-08-162-7/+20
| | | | | | | BooleanField does not have a default value Thanks to Collin Anderson for the suggestion and Tim Graham for reviewing the patch.
* Fixed #20649 -- Allowed blank field display to be ↵Alex Couper2013-07-311-0/+4
| | | | defined in the initial list of choices.
* Fixed #20348 -- Consistently handle Promise objects in ↵Tai Lee2013-07-311-13/+178
| | | | | | | | | | | | | model fields. All Promise objects were passed to force_text() deep in ORM query code. Not only does this make it difficult or impossible for developers to prevent or alter this behaviour, but it is also wrong for non-text fields. This commit changes `Field.get_prep_value()` from a no-op to one that resolved Promise objects. All subclasses now call super() method first to ensure that they have a real value to work with.
* Removed most of absolute_import importsClaude Paroz2013-07-292-2/+2
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Fixed #20740 -- GenericIPAddressField should pass ↵Tim Graham2013-07-121-0/+13
| | | | | | protocol to formfield() Thanks Jeff250.
* Stopped using django.utils.unittest in the test suite.Aymeric Augustin2013-07-012-2/+2
| | | | Refs #20680.
* Fixed #20660 -- Do not try to delete an unset FieldFileClaude Paroz2013-06-291-0/+11
| | | | | Thanks stanislas.guerra at gmail.com for the report and Baptiste Mispelon for the review.
* Use assertIsInstance in tests.Marc Tamlyn2013-05-211-7/+7
| | | | Gives much nicer errors when it fails.
* Fixed #19934 - Use of Pillow is now preferred over PIL.Daniel Lindsley2013-05-152-13/+12
| | | | This starts the deprecation period for PIL (support to end in 1.8).
* Fixed #17365, #17366, #18727 -- Switched to discovery ↵Carl Meyer2013-05-111-5/+0
| | | | | | | | | | | test runner. Thanks to Preston Timmons for the bulk of the work on the patch, especially updating Django's own test suite to comply with the requirements of the new runner. Thanks also to Jannis Leidel and Mahdi Yusuf for earlier work on the patch and the discovery runner. Refs #11077, #17032, and #18670.
* Marked tests of BinaryFields as expected failures on ↵Aymeric Augustin2013-05-081-1/+5
| | | | | | MySQL and Python 3. Current ports of MySQLdb are very buggy in this area.
* Modified model_fields for unittest2 discovery.Preston Timmons2013-04-122-1/+1
|
* Fixed #15124 -- Changed the default for BooleanField.Aymeric Augustin2013-03-241-1/+13
| | | | | Thanks to the many contributors who updated and improved the patch over the life of this ticket.
* Add a BinaryField model fieldClaude Paroz2013-03-022-2/+28
| | | | | Thanks Michael Jung, Charl Botha and Florian Apolloner for review and help on the patch.