summaryrefslogtreecommitdiff
path: root/django/db/models/fields
AgeCommit message (Collapse)Author
2016-07-30[1.10.x] Refs #25550 -- Corrected deprecation message for assigning M2M ↵Tim Graham
relations. Backport of 5fa4370543658aedd79dc554d8c52684d6c7cbca from master
2016-07-16[1.10.x] Fixed #26900 -- Fixed crash accessing deferred FileFields.Tim Graham
Backport of 7c33aa8a87d323f0e8e5368705aa8ba96f9819d0 from master
2016-07-12[1.10.x] Fixed #17657 -- Made ModelForm respect ModelMultipleChoiceField's ↵Andrey Fedoseev
to_field_name. Follow up to 67d984413c9540074e4fe6aa033081a35cf192bc. Backport of 81963b37a92ef583b9f725f1a78dd2ca97c1ab95 from master
2016-07-11[1.10.x] Fixed #26749 -- Preserved behavior of use_for_related_field during ↵Julien Hartmann
deprecation. Backport of f4afb85d7e900123fa8f88110adc011ab184e153 from master
2016-06-28[1.10.x] Fixed #26786 -- Avoided redundant max value validators on integer ↵Eduard Stepanov
fields. Backport of 49b4596cb4744e4b68d56e6a540a3e15c1582963 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-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-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
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-23Fixed #26398 -- Made FieldFile.open() respect its mode argument.Alexey Kotlyarov
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.
2016-03-10Fixed #26324 -- Fixed DurationField with fractional seconds on SQLite.Tim Graham
2016-03-02Fixed #26226 -- Made related managers honor the queryset used for ↵Simon Charette
prefetching their results. Thanks Loïc for the suggested improvements and Tim for the review.
2016-02-29Fixed #26186 -- Documented how app relative relationships of abstract models ↵Simon Charette
behave. This partially reverts commit bc7d201bdbaeac14a49f51a9ef292d6312b4c45e. Thanks Tim for the review. Refs #25858.
2016-02-27Fixed #26230 -- Made default_related_name affect related_query_name.chenesan
2016-02-12Removed unneeded hint=None/obj=None in system check messages.Tim Graham
2016-02-12Updated allow_migrate() signature in check framework testsMarkus Holtermann
2016-02-11Fixed #26196 -- Made sure __in lookups use to_field as default.Anssi Kääriäinen
Thanks Simon Charette for the test.
2016-02-11Fixed #26179 -- Removed null assignment check for non-nullable foreign key ↵ZachLiuGIS
fields.
2016-02-11Fixed #26153 -- Reallowed Q-objects in ↵Anssi Kääriäinen
ForeignObject.get_extra_descriptor_filter().
2016-02-10Fixed #26154 -- Deprecated CommaSeparatedIntegerFieldBrobin
2016-02-08Fixed #26162 -- Checked query name clashes of hidden relationships.Simon Charette
Although reverse accessor clashes should be skipped query name can't be hidden. Thanks to Ian Foote and Tim Graham for the review.
2016-01-28Fixed #25354 -- Added class/app_label interpolation for related_query_name.James Pulec
2016-01-25Fixed #26125 -- Fixed E731 flake warnings.userimack
2016-01-11Fixed #25858 -- Bound abstract model application relative relationships.Simon Charette
Thanks to Karl Hobley for the report and Markus, Shai, Aymeric for their input and Tim for the review.
2015-12-25Fixed #14286 -- Added models.BigAutoField.Alexander Sosnovskiy
2015-12-24Discouraged use of /tmp with predictable names.Chris Lamb
The use of predictable filenames in /tmp often leads to symlink attacks so remove the most obvious use of them in the docs.
2015-12-24Fixed #25981 -- Added need to update migrations to on_delete deprecation ↵Luis San Pablo
warning.
2015-12-24Fixed #25972 -- Restored support for the isnull lookup with ForeignObject.Tomo Otsuka
2015-12-05Fixed #25547 -- Made Model.refresh_from_db() update FileField's instance.Attila Tovt
2015-12-04Fixed #13774 -- Added models.Field.rel_db_type().Alexander Sosnovskiy
2015-11-21Fixed #13427 -- Made auto-m2m verbose names translatableClaude Paroz