Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/db/models/fields
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Fixed #25417 -- Added a field check for invalid ↵Simon Charette2015-10-271-17/+0
| | | | | | default values." This reverts commit 71ebcb85b931f43865df5b322b2cf06d3da23f69.
* Fixed #25550 -- Deprecated direct assignment to the ↵Tim Graham2015-10-272-1/+8
| | | | reverse side of a related set.
* Fixed #25611 -- Standardized descriptor signatures.Tim Graham2015-10-262-5/+5
|
* Fixed #25560 -- Made empty string related_name invalid.Simon Charette2015-10-162-2/+2
| | | | | Thanks to Ali Lotfi for the initial report and patch and Tim Graham for the review.
* Refs #25535 -- Minor edits to ForeignObject check changes.Tim Graham2015-10-141-5/+5
|
* Fixed #25535 -- Made ForeignObject checks less strict.Antoine Catton2015-10-131-6/+19
| | | | | Check that the foreign object `from_fields` are a subset of any unique constraints on the foreign model.
* Fixed #18012 -- Propagated reverse foreign keys from ↵Simon Charette2015-10-122-2/+2
| | | | | | proxy to concrete models. Thanks to Anssi for the review.
* Fixed #14368 -- Allowed setting a reverse OneToOne ↵Tim Graham2015-10-091-18/+28
| | | | relation to None.
* Fixed #25503 -- Fixed system check crash on ForeignKey ↵Mariusz Felisiak2015-10-071-1/+4
| | | | to abstract model.
* Fixed #21042 -- Allowed accessing FileDescriptor on the ↵Tim Graham2015-10-011-3/+1
| | | | | | | model class. This is consistent with ability to reference other descriptors on the model class (5ef0c03ae9aca99289737ba6d88a371ad95cf432).
* Refs #21414 -- Removed Field.related per deprecation ↵Tim Graham2015-09-241-10/+1
| | | | timeline.
* Refs #9893 -- Removed shims for lack of max_length ↵Tim Graham2015-09-241-15/+1
| | | | support in file storage per deprecation timeline.
* Removed SubfieldBase per deprecation timeline.Tim Graham2015-09-241-63/+0
|
* Documented "rel objects".Aymeric Augustin2015-09-211-0/+11
| | | | | Kept the docstring short because these objects aren't very well defined and they're in the crosshairs of several refactorings.
* Renamed descriptor classes for related objects.Aymeric Augustin2015-09-212-36/+41
| | | | | | | | | | | | The old names were downright confusing. Some seemed to mean the opposite of what the class actually did. The new names follow a consistent nomenclature: (Forward|Reverse)(ManyToOne|OneToOne|ManyToMany)Descriptor. I mentioned combinations that do not exist in the docstring in order to help people who would search for them in the code base.
* Added comments in related instances descriptors.Aymeric Augustin2015-09-211-6/+23
|
* Documented related models descriptors.Aymeric Augustin2015-09-211-14/+141
| | | | | Changed the poll / choices example to a more obvious parent / children. I think that reduces the cognitive load.
* Fixed #22341 -- Split django.db.models.fields.related.Aymeric Augustin2015-09-213-1191/+1213
| | | | | | | At 2800 lines it was the largest module in the django package. This commit brings it down to a more manageable 1620 lines. Very small changes were performed to uniformize import style.
* Fixed #24629 -- Unified Transform and Expression APIsJosh Smeaton2015-09-211-164/+1
|
* Fixed #25160 (again) -- Moved data loss check on reverse ↵Aymeric Augustin2015-09-191-6/+0
| | | | | | | | relations. Moved data loss check when assigning to a reverse one-to-one relation on an unsaved instance to Model.save(). This is exactly the same change as e4b813c but for reverse relations.
* Fixed #25417 -- Added a field check for invalid default ↵Simon Charette2015-09-181-0/+17
| | | | values.
* Fixed #24636 -- Added model field validation for decimal ↵Iulia Chiriac2015-09-181-0/+6
| | | | places and max digits.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-5/+15
|
* Removed obsolete TODO about moving ↵Tim Graham2015-09-011-1/+0
| | | | CommaSeparatedIntegerField into contrib.
* Fixed #25320 -- Reverted ManyToManyField.null to False ↵Tim Graham2015-09-011-3/+0
| | | | | | for backwards compatibility. Thanks Tom Christie for the report and review.
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-311-1/+0
|
* Fixed #24201 -- Added order_with_respect_to support to ↵Alex Hill2015-08-272-13/+37
| | | | GenericForeignKey.
* Fixed #24590 -- Cached calls to swappable_setting.Markus Holtermann2015-08-271-11/+2
| | | | | | | | | | Moved the lookup in Field.swappable_setting to Apps, and added an lru_cache to cache the results. Refs #24743 Thanks Marten Kenbeek for the initial work on the patch. Thanks Aymeric Augustin and Tim Graham for the review.
* Fixed #25172 -- Fixed check framework to work with ↵Ion Scerbatiuc2015-08-131-2/+6
| | | | multiple databases.
* Fixed #25160 -- Moved unsaved model instance data loss ↵Tim Graham2015-08-101-8/+1
| | | | | | | | | 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-8/+0
| | | | | | Unused since c2ba59fc1da5287d6286e2c2aca4083d5bafe056 (Django 1.0). Thanks Andy Baker for the report.
* Fixed #18556 -- Allowed RelatedManager.add() to execute ↵Tim Graham2015-07-281-11/+32
| | | | | | 1 query where possible. Thanks Loic Bistuer for review.
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-9/+59
| | | | on_delete for ForeignKey/OneToOneField
* Fixed #16501 -- Added an allow_unicode parameter to ↵Edward Henderson2015-07-171-1/+6
| | | | | | SlugField. Thanks Flavio Curella and Berker Peksag for the initial patch.
* Fixed #24716 -- Deprecated Field._get_val_from_obj()Thomas Stephenson2015-07-141-7/+13
| | | | | | The method duplicates the functionality of Field.value_from_object() and has the additional downside of being a privately named public API method.
* Fixed #23791 -- Corrected object type check for pk__in=qsAnssi Kääriäinen2015-06-291-1/+4
| | | | | | | | | | | | When the pk was a relation field, qs.filter(pk__in=qs) didn't work. In addition, fixed Restaurant.objects.filter(place=restaurant_instance), where place is an OneToOneField and the primary key of Restaurant. A big thank you to Josh for review and to Tim for review and cosmetic edits. Thanks to Beauhurst for commissioning the work on this ticket.
* Sorted imports in __init__.py files.Tim Graham2015-06-271-18/+21
|
* Fixed #25016 -- Reallowed non-ASCII values for ↵薛丞宏2015-06-261-4/+12
| | | | ForeignKey.related_name on Python 3.
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-244-11/+11
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Fixed #24979 -- Removed usage of inspect.getargspec().Tim Graham2015-06-151-3/+2
|
* Removed django.utils.functional.total_ordering()Tim Graham2015-06-151-1/+2
|
* Fixed #24912 -- Fixed prefetch_related failure for ↵Brian King2015-06-151-1/+4
| | | | | | | UUIDField primary keys This resolves a problem on databases besides PostgreSQL when using prefetch_related with a source model that uses a UUID primary key.
* Fixed #24859 -- Made QuerySet.get() with UUIDField raise ↵Cole Maclean2015-06-071-7/+11
| | | | | | TypeError on bad value. For consistency with AutoField.
* Fixed #22316 -- Added time filters to TimeField on SQLite.Matthew Somerville2015-06-051-2/+5
| | | | | This was implemented for non-SQLite backends in 1.7 (as a side effect of #16187).
* Fixed #24677 -- Made TextField.to_python() return a string.Rolo2015-06-041-2/+5
| | | | This is consistent with CharField.
* Fixed #24831 -- Fixed pickling queryset with ↵Andriy Sokolovskiy2015-06-021-0/+5
| | | | prefetch_related() after deleting objects.
* Fixed #9596 -- Added date transform for DateTimeField.Jon Dufresne2015-06-021-0/+16
|
* Fixed #24818 -- Prevented models.CharField from ↵Alasdair Nicol2015-05-191-6/+2
| | | | accepting a string as max_length
* Renamed value_to_db_xxx to adapt_xxxfield_value.Aymeric Augustin2015-05-171-5/+5
| | | | | This mirrors convert_xxxfield_value nicely, taking advantage of the adapter/converter terminology which is commonly used by DB-API modules.
* Removed unnecessary arguments in .get method callsPiotr Jakimiak2015-05-132-5/+5
|