summaryrefslogtreecommitdiff
path: root/django/db/models
AgeCommit message (Collapse)Author
2016-05-31Fixed #26676 -- Prevented prefetching to_attr from caching its result in ↵Simon Charette
through attr. Thanks Ursidours for the report.
2016-05-28Refs #24227 -- Fixed crash of ManyToManyField.value_from_object() on unsaved ↵Tim Graham
model instances. This behavior was removed in 67d984413c9540074e4fe6aa033081a35cf192bc but is needed to prevent a crash in formtools.
2016-05-27Fixed #26642 -- Made ModelSignal.disconnect() work with lazy references.Alex Hill
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
2016-03-23Fixed #26398 -- Made FieldFile.open() respect its mode argument.Alexey Kotlyarov
2016-03-21Refs #25759 -- Fixed some Funcs to work if different database backends are used.Kai Feldhoff
2016-03-19Fixed #26373 -- Fixed reverse lookup crash with a ForeignKey to_field in a ↵Jason Parrott
subquery.
2016-03-17Refs #26367 -- Removed obsolete _size cache on FieldField.Tim Graham
The _size attribute is used in File.size but FieldFile overrides it.
2016-03-14Fixed #26140 -- Suppressed MySQL warning when inserting binary contentClaude Paroz
Thanks Tim Graham for the review.