Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed #34539 -- Restored get_prep_value() call when adapting JSONFields. | Julie Rymer | 2023-05-16 | 1 | -0/+23 |
| | | | | Regression in 5c23d9f0c32f166c81ecb6f3f01d5077a6084318. | ||||
* | Fixed #34517 -- Avoided connection post_init signal to ImageField without ↵ | Orhan Hirsch | 2023-05-03 | 1 | -0/+8 |
| | | | | width/height fields. | ||||
* | Fixed #34388 -- Allowed using choice enumeration types directly on model and ↵ | T. Franzel | 2023-03-21 | 4 | -4/+16 |
| | | | | form fields. | ||||
* | Fixed #27397 -- Prevented integer overflows on integer field lookups. | Simon Charette | 2023-03-09 | 1 | -0/+39 |
| | | | | | This prevents a sqlite3 crash and address a potential DDoS vector on PostgreSQL caused by full-table-scans on overflows. | ||||
* | Refs #33476 -- Applied Black's 2023 stable style. | David Smith | 2023-02-01 | 1 | -0/+1 |
| | | | | | | | | Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 | ||||
* | Refs #34100 -- Made file upload tests use Storage.exists() where appropriate. | Francesco Panico | 2022-12-30 | 1 | -3/+6 |
| | |||||
* | Fixed #33308 -- Added support for psycopg version 3. | Daniele Varrazzo | 2022-12-15 | 1 | -1/+1 |
| | | | | | | | Thanks Simon Charette, Tim Graham, and Adam Johnson for reviews. Co-authored-by: Florian Apolloner <florian@apolloner.eu> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | ||||
* | Refs #33308 -- Deprecated support for passing encoded JSON string literals ↵ | Simon Charette | 2022-12-01 | 1 | -2/+29 |
| | | | | | | | to JSONField & co. JSON should be provided as literal Python objects an not in their encoded string literal forms. | ||||
* | Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵ | Gregor Gärtner | 2022-10-08 | 1 | -2/+2 |
| | | | | | | assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com> | ||||
* | Fixed #33966 -- Added support for using KeyTextTransform from lookup. | Allen Jonathan David | 2022-09-16 | 1 | -5/+19 |
| | |||||
* | Fixed #33954 -- Prevented models.DecimalField from accepting NaN, Inf, and ↵ | Mohamed Karam | 2022-08-27 | 1 | -4/+13 |
| | | | | -Inf values. | ||||
* | Removed unused path variable in model_fields tests. | Claude Paroz | 2022-08-23 | 1 | -2/+0 |
| | |||||
* | Refs #26511 -- Fixed json.KeyTextTransform() on MySQL/MariaDB. | Mariusz Felisiak | 2022-08-18 | 1 | -1/+13 |
| | |||||
* | Removed obsolete assertions in BooleanFieldTests.test_return_type(). | Mariusz Felisiak | 2022-06-03 | 2 | -6/+0 |
| | | | | Added in e9bbdb39de3047761fa8d03d5241eccd571093ff. Obsolete since e9103402c0fa873aea58a6a11dba510cd308cb84. | ||||
* | Refs #31223 -- Added __class_getitem__() to ForeignKey. | Collin Anderson | 2022-04-22 | 1 | -0/+3 |
| | |||||
* | Relaxed some query ordering assertions in various tests. | Mariusz Felisiak | 2022-04-14 | 3 | -23/+23 |
| | | | It accounts for differences seen on MySQL with MyISAM storage engine. | ||||
* | Fixed #33626 -- Cleared cache when unregistering a lookup. | Himanshu-Balasamanta | 2022-04-12 | 1 | -1/+0 |
| | |||||
* | Fixed #33552 -- Fixed JSONField has key lookups with numeric keys on ↵ | Sage Abdullah | 2022-03-15 | 1 | -0/+27 |
| | | | | MariaDB, MySQL, Oracle, and SQLite. | ||||
* | Removed redundant QuerySet.all() calls in docs and tests. | Nick Pope | 2022-02-22 | 1 | -1/+1 |
| | | | | Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager. | ||||
* | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | 2022-02-07 | 2 | -3/+10 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 22 | -843/+1078 |
| | |||||
* | Refs #33476 -- Refactored problematic code before reformatting by Black. | Mariusz Felisiak | 2022-02-03 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | | In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], ) | ||||
* | Fixed #33441 -- Restored immutability of models.Field.__hash__(). | Adam Johnson | 2022-01-14 | 1 | -3/+8 |
| | | | | Regression in 502e75f9ed5476ffe8229109acf0c23999d4b533. | ||||
* | Fixed #33033 -- Prevented models.DecimalField from accepting NaN values. | Chinmoy Chakraborty | 2021-09-28 | 1 | -0/+8 |
| | |||||
* | Refs #32508 -- Raised Type/ValueError instead of using "assert" in ↵ | Daniyal | 2021-07-15 | 2 | -0/+37 |
| | | | | | | django.db.models. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | ||||
* | Fixed #32718 -- Relaxed file name validation in FileField. | Mariusz Felisiak | 2021-05-13 | 1 | -0/+10 |
| | | | | | | | | | | | | | - 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. | ||||
* | Fixed #32620 -- Allowed subclasses of Big/SmallAutoField for DEFAULT_AUTO_FIELD. | Adam Johnson | 2021-04-08 | 1 | -1/+13 |
| | |||||
* | Fixed #32483 -- Fixed QuerySet.values()/values_list() on JSONField key ↵ | Mariusz Felisiak | 2021-03-23 | 1 | -0/+10 |
| | | | | | | transforms with booleans on SQLite. Thanks Matthew Cornell for the report. | ||||
* | Refs #32483 -- Added tests QuerySet.values()/values_list() on key transforms ↵ | Mariusz Felisiak | 2021-03-23 | 1 | -3/+5 |
| | | | | with structures containing booleans. | ||||
* | Refs #31936 -- Added tests for __in lookup on JSONField key transforms with ↵ | Mariusz Felisiak | 2021-03-23 | 1 | -0/+2 |
| | | | | booleans. | ||||
* | Fixed #32411 -- Fixed __icontains lookup for JSONField on MySQL. | Hasan Ramezani | 2021-02-05 | 1 | -0/+6 |
| | |||||
* | Refs #31369 -- Removed models.NullBooleanField per deprecation timeline. | Mariusz Felisiak | 2021-01-14 | 4 | -38/+17 |
| | |||||
* | Fixed #32252 -- Fixed __isnull=True on key transforms on SQLite and Oracle. | sage | 2020-12-11 | 1 | -0/+4 |
| | | | | __isnull=True on key transforms should not match keys with NULL values. | ||||
* | Fixed #32178 -- Allowed database backends to skip tests and mark expected ↵ | Hasan Ramezani | 2020-12-10 | 5 | -19/+4 |
| | | | | | failures. Co-authored-by: Tim Graham <timograham@gmail.com> | ||||
* | Fixed #25534, Fixed #31639 -- Added support for transform references in ↵ | Ian Foote | 2020-11-27 | 2 | -4/+63 |
| | | | | | | expressions. Thanks Mariusz Felisiak and Simon Charette for reviews. | ||||
* | Fixed #32203 -- Fixed QuerySet.values()/values_list() crash on key ↵ | sage | 2020-11-25 | 1 | -0/+5 |
| | | | | | | transforms with non-string values on SQLite. Thanks Gordon Wrigley for the report. | ||||
* | Refs #32203 -- Added tests for QuerySet.values()/values_list() on key ↵ | sage | 2020-11-25 | 1 | -0/+13 |
| | | | | transforms with non-trivial values. | ||||
* | Added test for filtering JSONField key transforms with quoted strings. | Mariusz Felisiak | 2020-11-24 | 1 | -0/+7 |
| | |||||
* | Fixed #32182 -- Fixed crash of JSONField nested key transforms with subquery ↵ | Hannes Ljungberg | 2020-11-10 | 1 | -0/+12 |
| | | | | annotations on PostgreSQL. | ||||
* | Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly. | Hasan Ramezani | 2020-11-06 | 1 | -4/+3 |
| | | | | | | | | This also replaces assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | ||||
* | Fixed #32132 -- Fixed column types in m2m intermediary tables for ↵ | David-Wobrock | 2020-11-02 | 1 | -0/+10 |
| | | | | Positive(Big/Small)IntegerFields. | ||||
* | Refs #32132 -- Added rel_db_type() tests for auto and integer fields. | David-Wobrock | 2020-11-02 | 2 | -0/+16 |
| | |||||
* | Replaced @no_oracle skips with DatabaseFeatures.allows_group_by_lob. | Tim Graham | 2020-10-22 | 1 | -1/+1 |
| | |||||
* | Refs #32096 -- Fixed ExpressionWrapper crash with JSONField key transforms. | Mariusz Felisiak | 2020-10-14 | 1 | -1/+15 |
| | | | | | | Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd. Thanks Simon Charette and Igor Jerosimić for the report. | ||||
* | Refs #32096 -- Fixed __in lookup crash against key transforms for JSONField. | Mariusz Felisiak | 2020-10-14 | 1 | -0/+10 |
| | | | | | | | Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd and 1251772cb83aa4106f526fe00738e51c0eb59122. Thanks Simon Charette and Igor Jerosimić for the report. | ||||
* | Used assertRaisesMessage() in CharField tests. | David Smith | 2020-09-25 | 1 | -4/+8 |
| | |||||
* | Fixed #31777 -- Added support for database collations to Char/TextFields. | Tom Carrick | 2020-09-21 | 2 | -1/+21 |
| | | | | Thanks Simon Charette and Mariusz Felisiak for reviews. | ||||
* | Refs #23130 -- Added test for BooleanField choices generation. | Jacob Walls | 2020-09-10 | 1 | -0/+9 |
| | |||||
* | Fixed #31750 -- Made models.Field equality compare models for inherited fields. | Ryan Hiebert | 2020-09-09 | 1 | -0/+30 |
| | |||||
* | Refs #31894 -- Added tests for JSONField key lookups with QuerySet.exclude(). | jpribyl | 2020-09-04 | 1 | -1/+47 |
| |