Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/db/models
Commit message (Collapse)AuthorAgeFilesLines
* Refs #25629 -- Added `arity` class attribute to `Func` ↵Sergey Fedoseev2015-11-023-10/+11
| | | | expressions
* Fixed #25609 -- Fixed regression in related field nested ↵Ian Foote2015-10-271-1/+4
| | | | lookup error.
* 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-264-10/+10
|
* Fixed #25563 -- Cached deferred models in their proxied ↵Simon Charette2015-10-201-4/+5
| | | | | | model's _meta.apps. Thanks to Andriy Sokolovskiy for the report and Tim Graham for the review.
* Fixed #25517 -- Made Concat function idempotent on SQLite.Josh Smeaton2015-10-171-6/+9
|
* 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.
* Fixed #25506 -- Allowed filtering over a RawSQL annotation.Antoine Catton2015-10-141-1/+1
| | | | Co-Authored-By: Gavin Wahl <gwahl@fusionbox.com>
* 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.
* Refs #18012 -- Removed the now unused proxied_children ↵Simon Charette2015-10-122-2/+0
| | | | | | model option. Thanks to Tim for the review.
* Refs #18012 -- Made proxy and concrete model reverse ↵Simon Charette2015-10-122-11/+5
| | | | | | | fields consistent. Prior to this change proxy models reverse fields didn't include the reverse fields pointing to their concrete model.
* Fixed #23076, #25505 -- Fixed deletion of intermediate ↵Simon Charette2015-10-121-1/+1
| | | | | | proxy models. Thanks to James Murty for his work on an alternate patch.
* Refs #18012 -- Removed special casing for proxy models ↵Simon Charette2015-10-121-10/+1
| | | | | | | deletion. This isn't required anymore now that reverse foreign keys from proxy models are propagated to their concrete model.
* Fixed #18012 -- Propagated reverse foreign keys from ↵Simon Charette2015-10-123-5/+12
| | | | | | proxy to concrete models. Thanks to Anssi for the review.
* Fixed #24687 -- Added select_related() validation for ↵Tim Graham2015-10-101-1/+1
| | | | | | | | | | nested non-relational fields. The removed test was added in the original select_related() validation patch (45d4e43d2d25b902e3821b612209afa951a8bcb8), but there doesn't seem to be any reason for it. Thanks Claude Paroz for help and 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 #25508 -- Modified QuerySet.__repr__() to ↵Tim Graham2015-10-061-1/+1
| | | | disambiguate it from a list.
* Removed obsolete (since Python 2.3) ↵Tim Graham2015-10-051-5/+0
| | | | __safe_for_unpickling__ attribute.
* 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).
* Removed unused Aggregate.input_field.Tim Graham2015-09-241-4/+0
| | | | Obsolete since 4a66a69239c493c05b322815b18c605cd4c96e7c.
* Refs #14030 -- Removed more backwards compatiblity for ↵Tim Graham2015-09-241-32/+0
| | | | | | old-style aggregates. Per deprecation timeline.
* Refs #21414 -- Removed Field.related per deprecation ↵Tim Graham2015-09-241-10/+1
| | | | timeline.
* Refs #14030 -- Removed backwards compatiblity for ↵Tim Graham2015-09-242-189/+0
| | | | | | old-style aggregates. Per deprecation timeline.
* Refs #9893 -- Removed shims for lack of max_length ↵Tim Graham2015-09-241-15/+1
| | | | support in file storage per deprecation timeline.
* Removed SQLCompiler.__call__() per deprecation timeline.Tim Graham2015-09-241-13/+0
|
* Refs #12663 -- Removed deprecated Model._meta methods.Tim Graham2015-09-241-156/+3
|
* Removed SubfieldBase per deprecation timeline.Tim Graham2015-09-242-64/+0
|
* Fixed #24509 -- Added Expression support to ↵Alex Hill2015-09-224-36/+138
| | | | SQLInsertCompiler
* 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-216-330/+309
|
* Fixed #25296 -- Prevented model related object cache ↵Raphael Merx2015-09-201-0/+3
| | | | pollution when create() fails due to an unsaved object.
* 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.
* Removed the unused JoinPromoter.outer_votes attribute.Simon Charette2015-09-171-8/+6
|
* Fixed #25377 -- Changed Count queries to execute ↵Adam Chainz2015-09-142-2/+10
| | | | COUNT(*) instead of COUNT('*').
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-5/+15
|
* Fixed typos in django/db/models/query.py docstrings.Nick Pope2015-09-071-2/+2
|
* Fixed #24525 -- Fixed AssertionError in some complex ↵Tim Graham2015-09-051-1/+2
| | | | | | queries. Thanks Anssi Kääriäinen for providing the solution.
* Fixed #19263 -- Fixed crash when filtering using __in ↵Tim Graham2015-09-041-1/+4
| | | | | | and an empty QuerySet. Thanks Marcin Biernat for the initial patch and tests.
* Fixed #25058 -- Added GenericRelations with ↵sarthakmeh2015-09-031-5/+2
| | | | related_query_name to the admin's delete confirmation page.
* Fixed #25335 -- Fixed regression where ↵Gavin Wahl2015-09-031-14/+14
| | | | QuerySet.iterator() didn't return an iterator.
* Removed obsolete TODO about moving ↵Tim Graham2015-09-011-1/+0
| | | | CommaSeparatedIntegerField into contrib.