summaryrefslogtreecommitdiff
path: root/django/db/models/fields
AgeCommit message (Collapse)Author
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
2015-11-11Fixed #25723 -- Made related field checks lookup against their local apps.Simon Charette
2015-10-27Revert "Fixed #25417 -- Added a field check for invalid default values."Simon Charette
This reverts commit 71ebcb85b931f43865df5b322b2cf06d3da23f69.
2015-10-27Fixed #25550 -- Deprecated direct assignment to the reverse side of a ↵Tim Graham
related set.
2015-10-26Fixed #25611 -- Standardized descriptor signatures.Tim Graham
2015-10-16Fixed #25560 -- Made empty string related_name invalid.Simon Charette
Thanks to Ali Lotfi for the initial report and patch and Tim Graham for the review.
2015-10-14Refs #25535 -- Minor edits to ForeignObject check changes.Tim Graham
2015-10-12Fixed #25535 -- Made ForeignObject checks less strict.Antoine Catton
Check that the foreign object `from_fields` are a subset of any unique constraints on the foreign model.
2015-10-12Fixed #18012 -- Propagated reverse foreign keys from proxy to concrete models.Simon Charette
Thanks to Anssi for the review.
2015-10-09Fixed #14368 -- Allowed setting a reverse OneToOne relation to None.Tim Graham
2015-10-06Fixed #25503 -- Fixed system check crash on ForeignKey to abstract model.Mariusz Felisiak
2015-10-01Fixed #21042 -- Allowed accessing FileDescriptor on the model class.Tim Graham
This is consistent with ability to reference other descriptors on the model class (5ef0c03ae9aca99289737ba6d88a371ad95cf432).
2015-09-23Refs #21414 -- Removed Field.related per deprecation timeline.Tim Graham
2015-09-23Refs #9893 -- Removed shims for lack of max_length support in file storage ↵Tim Graham
per deprecation timeline.
2015-09-23Removed SubfieldBase per deprecation timeline.Tim Graham
2015-09-21Documented "rel objects".Aymeric Augustin
Kept the docstring short because these objects aren't very well defined and they're in the crosshairs of several refactorings.
2015-09-21Renamed descriptor classes for related objects.Aymeric Augustin
The old names were downright confusing. Some seemed to mean the opposite of what the class actually did. The new names follow a consistent nomenclature: (Forward|Reverse)(ManyToOne|OneToOne|ManyToMany)Descriptor. I mentioned combinations that do not exist in the docstring in order to help people who would search for them in the code base.
2015-09-21Added comments in related instances descriptors.Aymeric Augustin
2015-09-21Documented related models descriptors.Aymeric Augustin
Changed the poll / choices example to a more obvious parent / children. I think that reduces the cognitive load.
2015-09-21Fixed #22341 -- Split django.db.models.fields.related.Aymeric Augustin
At 2800 lines it was the largest module in the django package. This commit brings it down to a more manageable 1620 lines. Very small changes were performed to uniformize import style.
2015-09-21Fixed #24629 -- Unified Transform and Expression APIsJosh Smeaton
2015-09-19Fixed #25160 (again) -- Moved data loss check on reverse relations.Aymeric Augustin
Moved data loss check when assigning to a reverse one-to-one relation on an unsaved instance to Model.save(). This is exactly the same change as e4b813c but for reverse relations.
2015-09-18Fixed #25417 -- Added a field check for invalid default values.Simon Charette
2015-09-18Fixed #24636 -- Added model field validation for decimal places and max digits.Iulia Chiriac
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić