Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/model_fields
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #24509 -- Added Expression support to ↵Alex Hill2015-09-221-1/+6
| | | | SQLInsertCompiler
* Fixed #24636 -- Added model field validation for decimal ↵Iulia Chiriac2015-09-181-0/+18
| | | | places and max digits.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-1/+4
|
* Serialized some tests that interact with the filesystem.Aymeric Augustin2015-09-091-1/+4
| | | | | Considering the APIs exercised by these test cases, it's hard to make them independent.
* Fixed #25320 -- Reverted ManyToManyField.null to False ↵Tim Graham2015-09-011-0/+6
| | | | | | for backwards compatibility. Thanks Tom Christie for the report and review.
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-311-5/+0
|
* Fixed #25160 -- Moved unsaved model instance data loss ↵Tim Graham2015-08-101-2/+15
| | | | | | | | | check to Model.save() This mostly reverts 5643a3b51be338196d0b292d5626ad43648448d3 and 81e1a35c364e5353d2bf99368ad30a4184fbb653. Thanks Carl Meyer for review.
* Removed unused Field.get_flatchoices() method.Tim Graham2015-08-031-2/+2
| | | | | | Unused since c2ba59fc1da5287d6286e2c2aca4083d5bafe056 (Django 1.0). Thanks Andy Baker for the report.
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-282-10/+12
| | | | 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-172-2/+16
| | | | | | SlugField. Thanks Flavio Curella and Berker Peksag for the initial patch.
* Fixed flake8 warnings on Python 3.Tim Graham2015-06-151-2/+3
|
* Fixed #24859 -- Made QuerySet.get() with UUIDField raise ↵Cole Maclean2015-06-071-0/+7
| | | | | | TypeError on bad value. For consistency with AutoField.
* Fixed #24677 -- Made TextField.to_python() return a string.Rolo2015-06-041-0/+7
| | | | This is consistent with CharField.
* Fixed #9596 -- Added date transform for DateTimeField.Jon Dufresne2015-06-021-1/+44
|
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-204-13/+13
|
* [1.8.x] Refs #24698, #24712 -- Forwardported ↵Abhaya Agarwal2015-05-132-1/+14
| | | | | | | | ForeignKey.get_db_prep_value() test and release notes. Fixed in master by b68212f539f206679580afbfd008e7d329c9cd31. Forwardport of 290c9d665490d80b0a1b648fb022190d7dc375fc from stable/1.8.x
* Fixed #24714 -- Used more specific assertions than ↵Alasdair Nicol2015-04-281-1/+1
| | | | assertEqual in tests.
* Used assertIsInstance in tests.Alasdair Nicol2015-04-271-2/+2
|
* Fixed #24667 --- Repaired model_fields cardinality testYoong Kang Lim2015-04-201-2/+2
|
* Fixed model_fields tests to use django TestCase.Jon Dufresne2015-04-151-4/+5
|
* Fixed #24611 -- Fixed update() crash with related UUID ↵Jay Wineinger2015-04-131-0/+17
| | | | pk object.
* Fixed #24215 -- Refactored lazy model operationsAlex Hill2015-03-252-36/+34
| | | | | | | 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.
* Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen2015-03-252-4/+4
| | | | | | | | Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True.
* Fixed #24483 -- Prevented keepdb from breaking with ↵David Szotten2015-03-241-7/+0
| | | | | | | | | generator choices. If Field.choices is provided as an iterator, consume it in __init__ instead of using itertools.tee (which ends up holding everything in memory anyway). Fixes a bug where deconstruct() was consuming the iterator but bypassing the call to `tee`.
* 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-212-1/+3
|
* Fixed #24343 -- Ensure db converters are used for ↵Marc Tamlyn2015-02-202-1/+13
| | | | | | foreign keys. Joint effort between myself, Josh, Anssi and Shai.
* Fixed #24289 -- Reversed usage of Field.many_to_one and ↵Loic Bistuer2015-02-131-6/+6
| | | | | | | one_to_many. Thanks Carl Meyer and Tim Graham for the reviews and to all involved in the discussion.
* Fixed #24319 -- Added validation for UUID model fieldJosh Smeaton2015-02-121-0/+9
|
* Refs #24215 -- Prevented pending lookup pollution by ↵Simon Charette2015-02-122-5/+50
| | | | abstract models.
* Fixed #24302 -- Added DurationField.formfield()Tim Graham2015-02-091-0/+9
|
* Fixed E265 comment styleCollin Anderson2015-02-061-1/+1
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-064-29/+29
|
* Added UUIDField.deconstruct()Tim Graham2015-02-061-0/+8
|
* Fixed #23617 -- Added get_pk_value_on_save()Anssi Kääriäinen2015-02-031-0/+17
| | | | | | | | The method is mainly intended for use with UUIDField. For UUIDField we want to call the field's default even when primary key value is explicitly set to None to match the behavior of AutoField. Thanks to Marc Tamlyn and Tim Graham for review.
* Fixed typos in code comments.Adam Taylor2015-01-201-1/+1
|
* Removed IPAddressField per deprecation timeline; refs ↵Tim Graham2015-01-192-28/+10
| | | | #20439.
* Fixed #24092 -- Widened base field support for ArrayField.Marc Tamlyn2015-01-161-0/+5
| | | | | | | | | | | | | | | | | | | | | | Several issues resolved here, following from a report that a base_field of GenericIpAddressField was failing. We were using get_prep_value instead of get_db_prep_value in ArrayField which was bypassing any extra modifications to the value being made in the base field's get_db_prep_value. Changing this broke datetime support, so the postgres backend has gained the relevant operation methods to send dates/times/datetimes directly to the db backend instead of casting them to strings. Similarly, a new database feature has been added allowing the uuid to be passed directly to the backend, as we do with timedeltas. On the other side, psycopg2 expects an Inet() instance for IP address fields, so we add a value_to_db_ipaddress method to wrap the strings on postgres. We also have to manually add a database adapter to psycopg2, as we do not wish to use the built in adapter which would turn everything into Inet() instances. Thanks to smclenithan for the report.
* Removed supports_binary_field flag as all backends ↵Claude Paroz2015-01-111-1/+0
| | | | | | | | support them It was mainly for MySQL on Python 3, but now the current recommended MySQL driver for Python 3 (mysqlclient) does support binary fields, it is unneeded. Refs #20377.
* Refs #2443 -- Allowed creation of objects with NULL ↵Michał Modzelewski2015-01-072-1/+10
| | | | DurationFields
* Fixed #24078 -- Removed empty strings from ↵Josh Smeaton2015-01-072-5/+17
| | | | GenericIPAddressField
* Fixed #12663 -- Formalized the Model._meta API for ↵Daniel Pyrathon2015-01-073-1/+272
| | | | | | | 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.
* Fixed #23891 -- Moved deprecation of IPAddressField to ↵Tim Graham2015-01-011-4/+18
| | | | | | system check framework. Thanks Markus Holtermann for review.
* Applied ignore_warnings to Django testsClaude Paroz2014-12-302-13/+12
|
* Fixed #2443 -- Added DurationField.Marc Tamlyn2014-12-202-0/+71
| | | | | | | | | | | 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-122-1/+5
| | | | related_name, convert to text.
* Fixed #23338 -- Added warning when unique=True on ForeigKeyDiego Guimarães2014-11-281-0/+18
| | | | | Thanks Jonathan Lindén for the initial patch, and Tim Graham and Gabe Jackson for the suggestions.
* Fixed #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-031-2/+2
| | | | Django test suite.