summaryrefslogtreecommitdiff
path: root/django/db/models/fields
AgeCommit message (Collapse)Author
2018-02-05Refs #28723 -- Fixed stale prefetch_related cache after add/remove.Jon Dufresne
Regression in 514b2c989a948e3c59bda0da0c9427acf643cf5b.
2018-02-02Fixed imports per isort 4.3.1.Tim Graham
Partially reverted 9bcf73d788866bc93f8248cb2e9d601ecbc4b50c.
2018-02-01Fixed imports per isort 4.3.0.Mariusz Felisiak
2018-01-27Refs #28748 -- Reallowed lazy values in model field choices.François Freitag
Regression in f9844f484186fa13399bf8b96f58616687fe158a. Thanks Matthias Kestenholz for the report and suggestions.
2018-01-24Fixed #28748 -- Made model field choices check more strict for named groups.François Freitag
2018-01-12Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵Дилян Палаузов
continue statements.
2018-01-03Fixed #28982 -- Simplified code with and/or.Дилян Палаузов
2018-01-03Fixed #28984 -- Made assorted code simplifications.Tim Graham
2018-01-03Fixed #28985 -- Removed unneeded None checks before hasattr().Дилян Палаузов
2018-01-02Removed DeferredAttribute.__init__()'s unused model argument.Mariusz Felisiak
Unused since a8a81aae20a81e012fddc24f3ede556501af64a2.
2017-12-28Fixed #28926 -- Fixed loss of precision of big DurationField values on ↵Sergey Fedoseev
SQLite and MySQL.
2017-12-26Refs #28459 -- Improved performance of loading DecimalField on SQLite.Sergey Fedoseev
2017-12-26Fixed #28930 -- Simplified code with any() and all().Дилян Палаузов
2017-12-22Fixed #28937 -- Allowed BinaryField to be editable=True.Cameron Curry
2017-12-11Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope
2017-12-04Fixed #28873 -- Used dict.setdefault() to set model and form field defaults.Дилян Палаузов
2017-12-04Fixed #28860 -- Removed unnecessary len() calls.Дилян Палаузов
2017-11-30Fixed #28856 -- Fixed a regression in caching of a GenericForeignKey ↵Simon Charette
pointing to a MTI model. Regression in b9f8635f58ad743995cad2081b3dc395e55761e5.
2017-11-29Fixed #28834 -- Followed ancestor links on field cache lookup failure.Simon Charette
Thanks Tim for the review.
2017-11-11Simplified Field.get_choices().Sergey Fedoseev
2017-11-06Fixed #28776 -- Fixed a/an/and typos in docs and comments.Дилян Палаузов
2017-11-02Fixed #28723 -- Fixed RelatedManager's prefetch_related() cache name.Mike Hansen
2017-10-30Fixed #28742 -- Fixed AttributeError crash when assigning None to cached ↵Paulo
reverse relations.
2017-10-18Refs #28575 -- Made RelatedObjectDoesNotExist classes pickable.Simon Charette
Thanks to Rachel Tobin for the initial __qualname__ work and tests.
2017-10-18Fixed outdated comment in RelatedObjectDoesNotExist.Simon Charette
2017-10-13Corrected 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.
2017-10-02Refs #23919 -- Removed unneeded float()/int() calls.Mariusz Felisiak
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.