summaryrefslogtreecommitdiff
path: root/django/db/models/fields
AgeCommit message (Collapse)Author
2017-11-06[2.0.x] Fixed #28776 -- Fixed a/an/and typos in docs and comments.Дилян Палаузов
Backport of 6c0042430e3618ce5c276d195d92a6b884daa3a3 from master
2017-10-30[2.0.x] Fixed #28742 -- Fixed AttributeError crash when assigning None to ↵Paulo
cached reverse relations. Backport of fcfcf8aae470d893b0d2ef176434461edf9e9c4d from master
2017-10-18[2.0.x] Fixed outdated comment in RelatedObjectDoesNotExist.Simon Charette
Backport of 0a69479b6c58c9eb420e688e436b6c6e41415613 from master
2017-10-13[2.0.x] Corrected examples in related field descriptor docstrings.Simon Charette
Using lowercased model class names suggested that accessing the attribute from instances of the class returned an instance of the descriptor, but this is only the case when accessed from the model class. Backport of 9dd405973cc39c00e50e28869808fb0797fea2b4 from master
2017-09-22Fixed #27332 -- Added FilteredRelation API for conditional join (ON clause) ↵Nicolas Delaby
support. Thanks Anssi Kääriäinen for contributing to the patch.
2017-09-11Refs #28492 -- Stopped accessing settings at Field.db_tablespace initialization.Simon Charette
Deferring accesses to settings allows database fields to be initialized before settings are loaded.
2017-09-06Refs #23919 -- Replaced usage of django.utils.functional.curry() with ↵Sergey Fedoseev
functools.partial()/partialmethod().
2017-08-31Fixed #28543 -- Prevented ManyToManyField.value_from_object() from being lazy.Tim Graham
Previously, it was a QuerySet which could reevaluate to a new value if the model's data changes. This is inconsistent with other Field.value_from_object() methods. This allows reverting the fix in the admin for refs #27998.
2017-08-21Fixed #28375 -- Fixed KeyError crash on reverse prefetch of a model with ↵Paulo
OneToOneField primary key to a non-pk field.
2017-08-10Refs #16043 -- Refactored internal fields value cache.Paulo
* Removed all hardcoded logic for _{fieldname}_cache. * Added an internal API for interacting with the field values cache. Thanks carljm and MarkusH for support.
2017-07-31Fixed #27985 -- Fixed query for __exact=value when get_prep_value() converts ↵Sergey Fedoseev
value to None. Also fixed crash of .filter(field__transform=None).
2017-07-29Avoided creation of temporary sets.Sergey Fedoseev
2017-07-27Fixed #28371 -- Fixed Cast() with CharField if the max_length argument isn't ↵Mariusz Felisiak
provided. Thanks Tim Graham for the review.
2017-07-26Allowed database backends to specify data types for Cast().Mariusz Felisiak
A small refactor ahead of refs #28371.
2017-07-20Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and ↵Tim Graham
Expression.convert_value(). Unused since a0d166306fbdc41f49e6fadf4ec84b17eb147daa.
2017-07-20Removed unused models.DecimalField._format().Sergey Fedoseev
Unused since b3b71a0922334c70bbc646a4873010f808196671.
2017-07-17Fixed #28391 -- Fixed Cast() with CharField and max_length on MySQL.Mariusz Felisiak
Thanks Tim Graham for the review.
2017-07-06Removed unused OrderWrt.deconstruct().Tim Graham
2017-06-26Fixed #26362 -- Fixed update of the inherited id field of an object when its ↵Paulo Alvarado
parent changes.
2017-06-17Fixed #28319 -- Made TextField with choices use a Select widget.Maciej Jaworski
2017-06-14Fixed #27914 -- Added support for nested classes in ↵chillaranand
Field.deconstruct()/__repr__().
2017-06-14Moved common code to RelatedField.deconstruct().Adam Bogdał
2017-06-14Fixed #24195 -- Deconstructed the limit_choices_to option of related fields.Adam Bogdał
Migrations will now be created for changes to limit_choices_to.
2017-06-05Replaced Model._get_pk_val() with pk property.Tim Graham
Model.pk was added after _get_pk_val() and many places weren't simplified.
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2017-06-01Fixed #28242 -- Moved ImageField file extension validation to the form field.Manatsawin Hanmongkolchai
2017-05-19Fixed #28210 -- Fixed Model._state.adding on MTI parent model after saving ↵Tim Graham
child model. Regression in 38575b007a722d6af510ea46d46393a4cda9ca29.
2017-05-11Fixed #28188 -- Fixed crash when pickling model fields.Tim Graham
Regression in d2a26c1a90e837777dabdf3d67ceec4d2a70fb86. Thanks Adam Alton for the report and test, and Adam Johnson for suggesting the fix.
2017-05-09Fixed #28164 -- Improved float conversions in DecimalField.to_pythonClaude Paroz
Thanks Tim Graham and Adam Johnson for the reviews.
2017-05-05Fixed #28175 -- Fixed __in lookups on a foreign key when using the foreign ↵Tim Graham
key's parent model as the lookup value. Thanks Simon Charette for review.
2017-05-03Fixed #28166 -- Fixed Model._state.db on MTI parent model after saving child ↵Tim Graham
model. Regression in 38575b007a722d6af510ea46d46393a4cda9ca29.
2017-04-27Refs #27795 -- Replaced many force_text() with str()Claude Paroz
Thanks Tim Graham for the review.
2017-04-25Refs #20939 -- Removed the Query._forced_pk hack.Simon Charette
2017-04-24Fixed #28120 -- Checked that CharField.max_length is not a boolean.Carles Pina Estany
2017-04-10Fixed #28047 -- Fixed QuerySet.filter() crash when it uses the name of a ↵Tim Graham
OneToOneField pk. Regression in 1bc249c2a67c24fcd28436c85388eff1d826e305.
2017-04-07Fixed #27777 -- Made File.open() work with the with statement (#8310)Ingo Klöcker
Fixed #27777 -- Made File.open() work with the with statement
2017-03-23Fixed #27969 -- Fixed models.Field.formfield() setting 'disabled' for fields ↵Kapil Garg
with choices.
2017-03-11Fixed #27904 -- Added a system check that Field.validators are callable.Adam Chainz
2017-03-04Refs #27795 -- Removed unneeded force_text callsClaude Paroz
Thanks Tim Graham for the review.
2017-02-28Refs #27656 -- Updated django.db docstring verbs according to PEP 257.Anton Samarchyan
2017-02-28Removed obsolete references to form_for_instance().Tim Graham
2017-02-20Fixed typo in DurationField's docstring.Alexey Rogachev
2017-02-10Refs #27148 -- Fixed UUIDField.to_python(None) crash.ClairePhila
Regression in 2f9861d823620da7ecb291a8f005f53da12b1e89.
2017-02-10Allow UUIDField to be None when deserializingClairePhila
2017-02-07Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz
Thanks Tim Graham for the review.
2017-02-01Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments.Vytis Banaitis
2017-01-26Refs #23919, #27778 -- Removed obsolete mentions of unicode.Vytis Banaitis
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-20Refs #23919 -- Removed unneeded str() callsClaude Paroz
2017-01-20Refs #23919 -- Removed unneeded force_str callsClaude Paroz