summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2016-06-02Fixed #26686 -- Fixed crash when registering model signals with abstract ↵Alex Hill
senders.
2016-05-31Fixed #26676 -- Prevented prefetching to_attr from caching its result in ↵Simon Charette
through attr. Thanks Ursidours for the report.
2016-05-30Fixed #25044 -- Fixed migrations for renaming ManyToManyField's through model.Vytis Banaitis
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-26Fixed #26647 -- Included the state of all applied migrations when migrating ↵Simon Charette
forward. Thanks Jasper Maes for the detailed report.
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 #26627 -- Fixed on_commit callbacks execution order when callbacks ↵Barthelemy Dagenais
make transactions.
2016-05-18Fixed #25774 -- Refactor datetime expressions into public APIJosh Smeaton
2016-05-18Refs #25774 -- Made Oracle truncate microseconds if USE_TZ=False.Josh Smeaton
The tests for this change are in the fix for #25774.
2016-05-17Fixed #26613 -- Made sqlite3 optional in SchemaEditor.quote_value().Philip Liberato
2016-05-17Fixed #14415 -- Used the test database name in ↵boaz85@gmail.com
BaseDatabaseCreation.test_db_signature().
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 unused code in AlterField.database_forwards().Tim Graham
This code added in 107c9f545346149b03354678f53a177709edaced isn't used after 4ce7a6bc84c68406e39f48550434faeef3277eba.
2016-05-14Removed redundant code in QuerySet._batched_insert().Tim Graham
2016-05-13Refs #24201 -- Ignored order_with_respect_to private fields in migrations.Simon Charette
Thanks Tim for the review.
2016-05-11Refs #24227 -- Removed ManyToManyField special casing in model_to_dict().Tim Graham
2016-05-11Fixed #26429 -- Added a timestamp to merge migration names.Raphael Gaschignard
This reduces the possibility of a naming conflict, especially after squashing migrations.
2016-05-09Fixed #25005 -- Made date and time fields with auto_now/auto_now_add use ↵Iacopo Spalletti
effective default. Thanks to Andriy Sokolovskiy for initial patch.
2016-05-08Replaced `six.callable` with `callable`.Ville Skyttä
2016-05-08Fixed #25945, #26292 -- Refactored MigrationLoader.build_graph()Jarek Glowacki
2016-05-07Fixed #26593 -- Leveraged deferrable_sql() in SchemaEditorMarkus Holtermann
2016-05-04Fixed #26555 -- Gave deconstructible objects a higher priority during ↵Markus Holtermann
serialization
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-29Fixed #26557 -- Converted empty strings to None when saving ↵Joshua Phillips
GenericIPAddressField.
2016-04-28Refs #26521 -- Adjusted CreateModel bases validation to account for mixins.Simon Charette
Thanks Collin for the report.
2016-04-27Refs #26521 -- Added the duplicated value to CreateModel validation messages.Simon Charette
Thanks Tim for the suggestion.
2016-04-27Fixed #26521 -- Validated CreateModel bases, fields and managers for duplicates.James Robert
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.