summaryrefslogtreecommitdiff
path: root/tests/model_fields/test_uuid.py
AgeCommit message (Collapse)Author
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2019-12-27Fixed random models_fields.test_uuid.TestQuerying failures.Mariusz Felisiak
Random failures depended on a generated UUID.
2019-09-23Fixed #29915 -- Added support for values with hyphens to pattern lookups for ↵Ian Foote
UUIDField on backends without UUID datatype. Support hyphens in iexact, contains, icontains, startswith, istartswith, endswith and iendswith UUIDField filters on backends without UUID datatype.
2019-09-23Refs #29915 -- Added tests for using pattern lookups with values without ↵Ian Foote
hyphens for UUIDField.
2019-06-28Fixed #30400 -- Improved typography of user facing strings.Jon Dufresne
Thanks Claude Paroz for assistance with translations.
2018-11-27Switched setUp() to setUpTestData() where possible in Django's tests.Simon Charette
2018-10-24Fixed #29869 -- Made UUIDField.to_python() convert integers.Sanyam Khurana
2018-10-22Fixed #27595 -- Made ForeignKey.get_col() follow target chains.Simon Charette
Previously, foreign relationships were followed only one level deep which prevents foreign keys to foreign keys from being resolved appropriately. This was causing issues such as improper database value conversion for UUIDField on SQLite because the resolved expression's output field's internal type wasn't correct. Added tests to make sure unlikely foreign reference cycles don't cause recursion errors. Refs #24343. Thanks oyooyo for the report and Wayne Merry for the investigation.
2017-02-10Refs #27148 -- Fixed UUIDField.to_python(None) crash.ClairePhila
Regression in 2f9861d823620da7ecb291a8f005f53da12b1e89.
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-10-31Fixed #27148 -- Fixed ModelMultipleChoiceField crash with invalid UUID.Tim Graham
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
2016-01-29Refs #26022 -- Used context manager version of assertRaisesMessage in tests.Hasan
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-08-10Fixed #25160 -- Moved unsaved model instance data loss check to Model.save()Tim Graham
This mostly reverts 5643a3b51be338196d0b292d5626ad43648448d3 and 81e1a35c364e5353d2bf99368ad30a4184fbb653. Thanks Carl Meyer for review.
2015-06-06Fixed #24859 -- Made QuerySet.get() with UUIDField raise TypeError on bad value.Cole Maclean
For consistency with AutoField.
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-05-12[1.8.x] Refs #24698, #24712 -- Forwardported ForeignKey.get_db_prep_value() ↵Abhaya Agarwal
test and release notes. Fixed in master by b68212f539f206679580afbfd008e7d329c9cd31. Forwardport of 290c9d665490d80b0a1b648fb022190d7dc375fc from stable/1.8.x
2015-04-13Fixed #24611 -- Fixed update() crash with related UUID pk object.Jay Wineinger
2015-02-20Fixed #24343 -- Ensure db converters are used for foreign keys.Marc Tamlyn
Joint effort between myself, Josh, Anssi and Shai.
2015-02-13Fixed #24319 -- Added validation for UUID model fieldJosh Smeaton
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-05Added UUIDField.deconstruct()Tim Graham
2015-02-03Fixed #23617 -- Added get_pk_value_on_save()Anssi Kääriäinen
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.
2014-09-16Fixed #19463 -- Added UUIDFieldMarc Tamlyn
Uses native support in postgres, and char(32) on other backends.