| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-12-02 | Refs #32690 -- Altered lookups Query rhs alterations during initialization. | Simon Charette | |
| Having it happen at the lookup creation time ensures entry points called before the compilation phase (e.g. get_group_by_cols) don't have to duplicate the logic in charge of altering Query instances used as rhs. It also has the nice effect of reducing the amount of time the alteration logic to once as opposed to multiple times if the queryset is compiled more than once. | |||
| 2021-11-08 | Fixed #32980 -- Made models cache related managers. | Keryn Knight | |
| 2021-11-03 | Fixed #32996 -- Cached PathInfos on relations. | Keryn Knight | |
| PathInfo values are ostensibly static over the lifetime of the object for which they're requested, so the data can be memoized, quickly amortising the cost over the process' duration. | |||
| 2021-10-06 | Fixed #33131 -- Improved error messages for clashing reverse accessor names. | Bernd Wechner | |
| 2021-09-28 | Fixed #33033 -- Prevented models.DecimalField from accepting NaN values. | Chinmoy Chakraborty | |
| 2021-09-24 | Fixed #33124 -- Avoided accessing the database connections when not necessary. | Keryn Knight | |
| Follow up to bf5abf1bdcedb15e949db419c61eeec7c88414ea. This also caches the __getitem__ access. | |||
| 2021-09-23 | Fixed #33133 -- Fixed handling NullBooleanField in historical migrations. | Mariusz Felisiak | |
| Regression in d992f4e3c29a81c956d3d616f0bc19701431b26e. | |||
| 2021-09-09 | Fixed #33084 -- Removed incorrect system check for ManyToManyField with ↵ | Hasan Ramezani | |
| limit_choices_to. | |||
| 2021-08-06 | Fixed #32983 -- Added system check for redundant related_name on symmetrical ↵ | Nick Touran | |
| M2M fields. Since ManyToManyFields defined with `symmetrical=True` do not add a related field to the target model, including a `related_name` argument will never do what the coder likely expects. This makes including a related_name with a symmetrical model raise a system check warning. ticket-32983 | |||
| 2021-07-30 | Refs #32966 -- Refactored out DateTimeCheckMixin._check_if_value_fixed(). | Chris Jerdonek | |
| 2021-07-30 | Refs #32966 -- Simplified the _check_fix_default_value() implementations. | Chris Jerdonek | |
| 2021-07-30 | Refs #32966 -- Added _to_naive() and _get_naive_now() for use in ↵ | Chris Jerdonek | |
| DateTimeCheckMixin classes. | |||
| 2021-07-30 | Fixed #32966 -- Fixed TimeField.check() crash for timezone-aware times in ↵ | Chris Jerdonek | |
| default when USE_TZ = True. | |||
| 2021-07-28 | Refs #32946 -- Changed internal usage of dynamic Q() objects construction to ↵ | Keryn Knight | |
| use non-kwargs initialization. This prefers non-kwargs construction of dynamically generated Q() objects to create a single Q() object instead of many and then combining them, where possible. | |||
| 2021-07-26 | Fixed #32947 -- Fixed hash() crash on reverse M2M relation when ↵ | Tom Wojcik | |
| through_fields is a list. Regression in c32d8f33d8e988a376e44997b8f3606d821f305e. | |||
| 2021-07-22 | Fixed #32951 -- Removed Query.where_class & co. | Nick Pope | |
| Unused since 3caf957ed5eaa831a485abcb89f27266dbf3e82b. | |||
| 2021-07-15 | Refs #32508 -- Raised Type/ValueError instead of using "assert" in ↵ | Daniyal | |
| django.db.models. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2021-07-09 | Fixed #27021 -- Allowed lookup expressions in annotations, aggregations, and ↵ | Ian Foote | |
| QuerySet.filter(). Thanks Hannes Ljungberg and Simon Charette for reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2021-07-07 | Fixed #32840 -- Optimized Field.get_col(). | Keryn Knight | |
| get_col() used "self" as "output_field" when it was not given, and unnecessarily compared "self" to "self". Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2021-06-15 | Fixed #30427, Fixed #16176 -- Corrected setting descriptor in ↵ | Carlton Gibson | |
| Field.contribute_to_class(). Co-authored-by: Jarek Glowacki <jarekwg@gmail.com> | |||
| 2021-05-28 | Fixed #32676 -- Prevented migrations from rendering related field attributes ↵ | David Wobrock | |
| when not passed during initialization. Thanks Simon Charette for the implementation idea. | |||
| 2021-05-13 | Fixed #32718 -- Relaxed file name validation in FileField. | Mariusz Felisiak | |
| - Validate filename returned by FileField.upload_to() not a filename passed to the FileField.generate_filename() (upload_to() may completely ignored passed filename). - Allow relative paths (without dot segments) in the generated filename. Thanks to Jakub Kleň for the report and review. Thanks to all folks for checking this patch on existing projects. Thanks Florian Apolloner and Markus Holtermann for the discussion and implementation idea. Regression in 0b79eb36915d178aef5c6a7bbce71b1e76d376d3. | |||
| 2021-05-04 | Fixed CVE-2021-31542 -- Tightened path & file name sanitation in file uploads. | Florian Apolloner | |
| 2021-04-13 | Corrected typo in Field.deconstruct docstring. | Daniel Hahler | |
| 2021-04-08 | Fixed #32620 -- Allowed subclasses of Big/SmallAutoField for DEFAULT_AUTO_FIELD. | Adam Johnson | |
| 2021-03-23 | Fixed #32483 -- Fixed QuerySet.values()/values_list() on JSONField key ↵ | Mariusz Felisiak | |
| transforms with booleans on SQLite. Thanks Matthew Cornell for the report. | |||
| 2021-02-05 | Fixed #32411 -- Fixed __icontains lookup for JSONField on MySQL. | Hasan Ramezani | |
| 2021-01-14 | Refs #31369 -- Removed models.NullBooleanField per deprecation timeline. | Mariusz Felisiak | |
| 2020-12-30 | Fixed #32294 -- Prevented ManyToManyField's hidden related name collisions ↵ | manav014 | |
| between apps. | |||
| 2020-12-29 | Added app labels to related fields checks messages E302-E305. | Mariusz Felisiak | |
| 2020-12-29 | Used model's Options.label where applicable. | Mariusz Felisiak | |
| Follow up to b7a3a6c9ef0a89625881b47594120bca55fa2e49. | |||
| 2020-12-11 | Fixed #32252 -- Fixed __isnull=True on key transforms on SQLite and Oracle. | sage | |
| __isnull=True on key transforms should not match keys with NULL values. | |||
| 2020-12-07 | Removed lhs_only argument from KeyTransform.preprocess_lhs(). | sage | |
| 2020-11-25 | Fixed #32203 -- Fixed QuerySet.values()/values_list() crash on key ↵ | sage | |
| transforms with non-string values on SQLite. Thanks Gordon Wrigley for the report. | |||
| 2020-11-24 | Simplified JSONField key transforms by using JSON_OBJECT() on Oracle. | Mariusz Felisiak | |
| 2020-11-10 | Fixed #32182 -- Fixed crash of JSONField nested key transforms with subquery ↵ | Hannes Ljungberg | |
| annotations on PostgreSQL. | |||
| 2020-11-02 | Fixed #32132 -- Fixed column types in m2m intermediary tables for ↵ | David-Wobrock | |
| Positive(Big/Small)IntegerFields. | |||
| 2020-10-15 | Refs #32096 -- Made JSONField check respect Meta.required_db_vendor. | Mariusz Felisiak | |
| Thanks Simon Charette for the implementation idea. | |||
| 2020-10-14 | Refs #32096 -- Fixed __in lookup crash against key transforms for JSONField. | Mariusz Felisiak | |
| Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd and 1251772cb83aa4106f526fe00738e51c0eb59122. Thanks Simon Charette and Igor Jerosimić for the report. | |||
| 2020-10-12 | Fixed #32098 -- Made FieldFile use FileField.attname. | Sultan | |
| After a93425a37f4defdb31d4ca96bb3bf6da21f0b5ce FileDescriptor is a subclass of DeferredAttribute and uses FileField.attname to access the field data, so that custom subclasses can not only save data to files, but also represent the same data with a different data type by attaching FileFiled.name to a particular descriptor. Follow up to a93425a37f4defdb31d4ca96bb3bf6da21f0b5ce. | |||
| 2020-10-06 | Refs #20577 -- Deferred filtering of prefetched related querysets by reverse ↵ | Bob Renwick | |
| m2o relation. | |||
| 2020-10-05 | Refs #31926 -- Fixed reverse related identity crash on Q() limit_choices_to. | Simon Charette | |
| 2020-10-05 | Fixed #31926 -- Fixed recreating queryset with FilteredRelation when using a ↵ | David-Wobrock | |
| pickled Query. In a pickled join, the join_fields had the same values, but weren't the same object (contrary to when not pickling the QuerySet). | |||
| 2020-09-21 | Fixed #31777 -- Added support for database collations to Char/TextFields. | Tom Carrick | |
| Thanks Simon Charette and Mariusz Felisiak for reviews. | |||
| 2020-09-09 | Fixed #31750 -- Made models.Field equality compare models for inherited fields. | Ryan Hiebert | |
| 2020-09-02 | Fixed #31941 -- Corrected FileField.deconstruct() with a callable storage. | Brian Helba | |
| 2020-08-31 | Fixed #31952 -- Fixed EmptyFieldListFilter crash with reverse relationships. | Federico Jaramillo Martínez | |
| Thanks dacotagh for the report. | |||
| 2020-08-28 | Fixed #31956 -- Fixed crash of ordering by JSONField with a custom decoder ↵ | Mariusz Felisiak | |
| on PostgreSQL. Thanks Marc Debureaux for the report. Thanks Simon Charette, Nick Pope, and Adam Johnson for reviews. | |||
| 2020-08-26 | Fixed #31936 -- Fixed __in lookup on key transforms for JSONField. | Mariusz Felisiak | |
| This resolves an issue on databases without a native JSONField (MariaDB, MySQL, SQLite, Oracle), where values must be wrapped. Thanks Sébastien Pattyn for the report. | |||
| 2020-07-30 | Removed unnecessary list() call in RelatedManager.add(). | Sergey Fedoseev | |
