summaryrefslogtreecommitdiff
path: root/django/db/models/fields
AgeCommit message (Collapse)Author
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
2016-10-31Fixed #27148 -- Fixed ModelMultipleChoiceField crash with invalid UUID.Tim Graham
2016-10-28Fixed #27188 -- Allowed using unique=True with FileField.Michael Scott
Thanks Tim Graham for the initial patch.
2016-10-28Fixed #20939 -- Simplified query generation by converting QuerySet to Query.Tim Graham
Thanks Anssi Kääriäinen for the initial patch and Anssi, Simon Charette, and Josh Smeaton for review.
2016-10-26Fixed #27334 -- Allowed FileField to move rather than copy a file.Adam Chidlow
When a FileField is set to an instance of File that is not also an instance of FieldFile, pre_save() passes that object as the contents to Storage.save(). This allows the file to be moved rather than copied to the upload destination.
2016-09-22Fixed #27159 -- Prevented pickling a query with an __in=inner_qs lookup from ↵Jani Tiainen
evaluating inner_qs.
2016-09-16Fixed #27235 -- Removed some usage of mutable default arguments.Chris Lamb
2016-09-09Fixed #27204 -- Made clashing m2m intermediary table checks ignore unmanaged ↵Tim Graham
models.
2016-09-03Replaced smart_* by force_* calls whenever possibleClaude Paroz
The smart_* version should only be used when a lazy string should keep its lazy status.
2016-08-25Replaced property() usage with decorator in several places.Berker Peksag
2016-08-11Fixed #26891 -- Fixed lookup registration for ForeignObject.Ryan P Kilby
2016-08-09Fixed #13809 -- Made FieldFile.open() respect its mode argument.Chris Sinchok
2016-08-05Fixed #26706 -- Made RelatedManager modification methods clear ↵Yoong Kang Lim
prefetch_related() cache.
2016-08-04Fixed #26983 -- Fixed isnull filtering on ForeignKey with to_fieldClaude Paroz
Thanks weidwonder for the report.
2016-07-30Refs #25550 -- Corrected deprecation message for assigning M2M relations.Tim Graham
2016-07-21Refs #26796 -- Fixed ManyToManyField's limit_choices_to warning without a ↵Kevan Swanberg
through model.
2016-07-16Fixed #26900 -- Fixed crash accessing deferred FileFields.Tim Graham
2016-07-12Fixed #17657 -- Made ModelForm respect ModelMultipleChoiceField's to_field_name.Andrey Fedoseev
Follow up to 67d984413c9540074e4fe6aa033081a35cf192bc.
2016-07-11Fixed #26749 -- Preserved behavior of use_for_related_field during deprecation.Julien Hartmann
2016-07-08Fixed #26796 -- Added a system check for m2m fields with ignored ↵Anderson Resende
limit_choices_to.
2016-06-30Fixed #21548 -- Added FileExtensionValidator and validate_image_file_extension.Berker Peksag
2016-06-28Fixed #26786 -- Avoided redundant max value validators on integer fields.Eduard Stepanov
2016-06-27Fixed #26784 -- Made ForeignKey.validate() pass `model` to router if ↵Ben Demboski
model_instance=None.
2016-06-17Reverted "Fixed #26398 -- Made FieldFile.open() respect its mode argument."Tim Graham
This reverts commit a52a531a8b34f049fba11c3ee7b010af7534bf90 due to regressions described in refs #26772.
2016-06-13Fixed #4136 -- Made ModelForm save empty values for nullable CharFields as NULL.Jon Dufresne
Previously, empty values were saved as strings.
2016-06-10Fixed #12810 -- Added a check for clashing ManyToManyField.db_table names.Berker Peksag
2016-06-09Fixed #26648 -- Added a system check for invalid related_query_name's ↵Michal Petrucha
containing underscores.
2016-06-09Replaced a hardcoded LOOKUP_SEP in models/fields/__init__.pyMichal Petrucha
2016-06-09Fixed #26718 -- Added system check for existence of the fields specified by ↵Sergey Fedoseev
ForeignKey.to_field.
2016-06-07Fixed typos in db/models/fields/related_descriptors.pyTim Graham
2016-06-07Fixed typo in db/models/fields/related_descriptors.pyPaulo
2016-06-07Refs #15250 -- Added docstring for ForwardOneToOneDescriptor.Paulo
2016-06-04Fixed #26667 -- Fixed a regression in queries on a OneToOneField that has ↵Tim Graham
to_field and primary_key=True. Thanks Simon Charette for review.
2016-06-03Fixed #15250 -- Avoided extra query on some multi-table inheritance queries.Paulo
Thanks marekw2143 for the initial patch and carljm for support.
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-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-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-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/untested Field.get_choices_default()/value_to_string() methods.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-22Fixed #26528 -- Allowed any iterable (e.g. tuple) as validators kwarg for ↵Loïc Bistuer
form/model fields.
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