summaryrefslogtreecommitdiff
path: root/django/db/models
AgeCommit message (Collapse)Author
2016-06-18[1.10.x] Fixed #26778 -- Fixed ModelSignal.connect() weak argument.Tim Graham
Backport of 9bf8d50a678463a5a3cd52f10c830fe0ca65d2c6 from master
2016-06-17[1.10.x] Reverted "Fixed #26398 -- Made FieldFile.open() respect its mode ↵Tim Graham
argument." This reverts commit a52a531a8b34f049fba11c3ee7b010af7534bf90 due to regressions described in refs #26772. Backport of 7def55c3f6716fcfa40a3bd5d0fbb2090588d81e from master
2016-06-07[1.10.x] Fixed typos in db/models/fields/related_descriptors.pyPaulo
Backport of 1a2a7cc01e7c46432605854f143a548635f027e5 and 908c26b079f2d657e30a3155d591a2467ba7d339 from master
2016-06-04[1.10.x] Fixed #26667 -- Fixed a regression in queries on a OneToOneField ↵Tim Graham
that has to_field and primary_key=True. Thanks Simon Charette for review. Backport of e2296e7f0acf9c50868ab997ba565c1f47beb45b from master
2016-06-02[1.10.x] Fixed #26686 -- Fixed crash when registering model signals with ↵Alex Hill
abstract senders. Backport of 08014fe75b4fc379523f340191a02147ec35f7a3 from master
2016-06-02[1.10.x] Fixed #26642 -- Made ModelSignal.disconnect() work with lazy ↵Alex Hill
references. Backport of ff6c6feae17120c2c7df74fb6a9dc76826a1e233 from master
2016-05-31[1.10.x] Fixed #26676 -- Prevented prefetching to_attr from caching its ↵Simon Charette
result in through attr. Thanks Ursidours for the report. Backport of 53a5fb3cc0137bebeebc0d4d321dbfe20397b065 from master
2016-05-28[1.10.x] Refs #24227 -- Fixed crash of ManyToManyField.value_from_object() ↵Tim Graham
on unsaved model instances. This behavior was removed in 67d984413c9540074e4fe6aa033081a35cf192bc but is needed to prevent a crash in formtools. Backport of a4c20ae85b40c49e28d1b2227208e4f00d7820df from master
2016-05-19Fixed #26421 -- Refactored ModelSignal to use Apps.lazy_model_operation()Alex Hill
2016-05-19Refs #26421 -- Refactored Apps.lazy_model_operation() for better checks and ↵Alex Hill
tests
2016-05-19Fixed some newlines in imports per isort.Tim Graham
2016-05-19Fixed #26515 -- Fixed Query.trim_joins() for nested ForeignObjects.darius BERNARD
2016-05-18Fixed #26620 -- Made Model.refresh_from_db() fail when passed unknown kwargs.Marti Raudsepp
2016-05-18Fixed #25774 -- Refactor datetime expressions into public APIJosh Smeaton
2016-05-17Fixed #10506, #13793, #14891, #25201 -- Introduced new APIs to specify ↵Loïc Bistuer
models' default and base managers. This deprecates use_for_related_fields. Old API: class CustomManager(models.Model): use_for_related_fields = True class Model(models.Model): custom_manager = CustomManager() New API: class Model(models.Model): custom_manager = CustomManager() class Meta: base_manager_name = 'custom_manager' Refs #20932, #25897. Thanks Carl Meyer for the guidance throughout this work. Thanks Tim Graham for writing the docs.
2016-05-17Fixed #20932, #25897 -- Streamlined manager inheritance.Loïc Bistuer
2016-05-16Fixed #24305 -- Allowed overriding fields on abstract models.Aron Podrigal
Fields inherited from abstract base classes may be overridden like any other Python attribute. Inheriting from multiple models/classes with the same attribute name will follow the MRO.
2016-05-15Fixed #24100 -- Made the migration signals dispatch its plan and apps.Simon Charette
Thanks Markus for your contribution and Tim for your review.
2016-05-14Removed redundant code in QuerySet._batched_insert().Tim Graham
2016-05-11Refs #24227 -- Removed ManyToManyField special casing in model_to_dict().Tim Graham
2016-05-04Fixed #22936 -- Obsoleted Field.get_prep_lookup()/get_db_prep_lookup()Claude Paroz
Thanks Tim Graham for completing the initial patch.
2016-05-03Normalized "an SQL" spelling.Ville Skyttä
2016-05-03Refs #26565 -- Errored nicely when using Prefetch with a values() queryset.Simon Charette
Thanks Maxime Lorant for the report and Anssi for the suggestion.
2016-05-03Refs #16508 -- Made Model.__init__() aware of virtual fields.Michal Petrucha
It's no longer necessary for GenericForeignKey (and any other virtual fields) to intercept the field's values using the pre_init signal.
2016-05-02Refs #22936 -- Moved more of Field.get_db_prep_lookup() to lookups.Tim Graham
2016-04-30Fixed #26058 -- Delegated os.path bits of FileField's filename generation to ↵Cristiano
the Storage.
2016-04-29Fixed #26207 -- Replaced dynamic classes with non-data descriptors for ↵Anssi Kääriäinen
deferred instance loading.
2016-04-25Refs #22936 -- Removed unused code in Field.get_db_prep_lookup().Tim Graham
2016-04-25Removed unused Q.clone().Tim Graham
Unused since afe0bb7b13bb8dc4370f32225238012c873b0ee3.
2016-04-25Removed unused/untested Field.get_choices_default()/value_to_string() methods.Tim Graham
2016-04-22Removed unused BaseExpression.refs_aggregate().Tim Graham
Unused since afe0bb7b13bb8dc4370f32225238012c873b0ee3.
2016-04-22Fixed #26320 -- Deprecated implicit OneToOnField parent_link.Tim Graham
2016-04-22Removed unused ForeignObject.attnames/get_defaults().Tim Graham
2016-04-22Removed unused ForeignObjectRel.get_choices() limit_to_currently_related ↵Tim Graham
argument. Unused since its introduction in dc334a2ba8dbf5134d65c97fea2785c3b2294ef5.
2016-04-22Refs #3254 -- Added full text search to contrib.postgres.Marc Tamlyn
Adds a reasonably feature complete implementation of full text search using the built in PostgreSQL engine. It uses public APIs from Expression and Lookup. With thanks to Tim Graham, Simon Charettes, Josh Smeaton, Mikey Ariel and many others for their advice and review. Particular thanks also go to the supporters of the contrib.postgres kickstarter.
2016-04-22Fixed #26528 -- Allowed any iterable (e.g. tuple) as validators kwarg for ↵Loïc Bistuer
form/model fields.
2016-04-13Fixed #26486 -- Fixed a select_related() + defer() MTI edge case.Tim Graham
2016-04-13Refs #16508 -- Renamed the current "virtual" fields to "private".Michal Petrucha
The only reason why GenericForeignKey and GenericRelation are stored separately inside _meta is that they need to be cloned for every model subclass, but that's not true for any other virtual field. Actually, it's only true for GenericRelation.
2016-04-12Refs #22936 -- Moved IntegerField.get_prep_lookup() logic to lookups.Tim Graham
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2016-04-05Fixed #26458 -- Based Avg's default output_field resolution on its source ↵Simon Charette
field type. Thanks Tim for the review and Josh for the input.
2016-04-04Fixed W503 flake8 warnings.Tim Graham
2016-04-03Fixed #26441 -- Added model Field.db_check() methodMarkus Holtermann
Thanks Common Code for financing the work on this commit.
2016-03-30Fixed #11560 -- Allowed proxy model multiple-inheritance from the same ↵Akshesh
concrete base model.
2016-03-29Fixed #24932 -- Added Cast database function.Claude Paroz
Thanks Ian Foote for the initial patch.
2016-03-29Fixed #25759 -- Added keyword arguments to customize Expressions' as_sql().Kai Feldhoff
2016-03-28Fixed #26413 -- Fixed a regression with abstract model inheritance and ↵Simon Charette
explicit parent links. Thanks Trac alias trkjgrdg for the report and Tim for investigation and review.
2016-03-28Sorted single letter imports per the latest version of isort.Tim Graham
2016-03-28Avoided need to import model fields in models/functions.py.Claude Paroz
2016-03-28Normalized Func.as_sqlite() signature.Tim Graham