Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refs #27236 -- Made more cosmetic edits to Meta.index_together deprecation. | Mariusz Felisiak | 2023-05-05 | 1 | -2/+1 |
| | |||||
* | 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 | ||||
* | Fixed #18468 -- Added support for comments on columns and tables. | kimsoungryoul | 2022-12-28 | 1 | -0/+2 |
| | | | | | | | | Thanks Jared Chung, Tom Carrick, David Smith, Nick Pope, and Mariusz Felisiak for reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk> | ||||
* | Refs #32095 -- Added model's Options._non_pk_concrete_field_names property. | sarahboyce | 2022-09-29 | 1 | -0/+14 |
| | |||||
* | Refs #27236 -- Made cosmetic edits to Meta.index_together deprecation. | Mariusz Felisiak | 2022-07-21 | 1 | -1/+2 |
| | | | | This should make it more straightforward to move forward when deprecation ends. | ||||
* | Fixed #27236 -- Deprecated Meta.index_together in favor of Meta.indexes. | David Wobrock | 2022-07-12 | 1 | -0/+8 |
| | | | | This also deprecates AlterIndexTogether migration operation. | ||||
* | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | 2022-02-07 | 1 | -2/+2 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 1 | -84/+177 |
| | |||||
* | Fixed #33335 -- Made model validation ignore functional unique constraints. | Hannes Ljungberg | 2021-12-06 | 1 | -1/+5 |
| | | | | | | Regression in 3aa545281e0c0f9fac93753e3769df9e0334dbaa. Thanks Hervé Le Roy for the report. | ||||
* | Fixed #32996 -- Cached PathInfos on relations. | Keryn Knight | 2021-11-03 | 1 | -1/+1 |
| | | | | | | 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. | ||||
* | Removed unused model's Options.installed. | Mariusz Felisiak | 2021-10-28 | 1 | -4/+0 |
| | | | Unused since f9698c43918c118a29516cbef4e23c197eb2dc25. | ||||
* | Fixed #31007 -- Allowed specifying type of auto-created primary keys. | Tom Forbes | 2020-12-15 | 1 | -2/+35 |
| | | | | | This also changes the default type of auto-created primary keys for new apps and projects to BigAutoField. | ||||
* | Refs #27666 -- Ensured relationship consistency on delayed reloads. | Simon Charette | 2020-04-07 | 1 | -2/+3 |
| | | | | | | | | | | | | Delayed reloads of state models broke identity based relationships between direct and non-direct ancestors. Basing models.Options related objects map of model labels instead of their identity ensured relationship consistency is maintained. Refs #30966. Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com> | ||||
* | Refs #31187 -- Added total_unique_constraints property to model's Options. | Mariusz Felisiak | 2020-02-19 | 1 | -1/+13 |
| | |||||
* | Simplified imports from django.db and django.contrib.gis.db. | Nick Pope | 2020-02-04 | 1 | -3/+1 |
| | |||||
* | Used model's Options.label/label_lower where applicable. | Mariusz Felisiak | 2020-01-29 | 1 | -1/+1 |
| | |||||
* | Fixed #29998 -- Allowed multiple OneToOneFields to the parent model. | Mariusz Felisiak | 2020-01-16 | 1 | -5/+1 |
| | | | | | | | | | | We assumed that any OneToOneField's in a child model must be the parent link and raised an error when parent_link=True was not specified. This patch allows to specify multiple OneToOneField's to the parent model. OneToOneField's without a custom related_name will raise fields.E304 and fields.E305 so this should warn users when they try to override the auto-created OneToOneField. | ||||
* | Simplified model's Options.add_field() a bit. | Taoup | 2020-01-07 | 1 | -3/+3 |
| | |||||
* | Refs #29444 -- Allowed returning multiple fields from INSERT statements on ↵ | Johannes Hoppe | 2019-09-09 | 1 | -0/+11 |
| | | | | | | | PostgreSQL. Thanks Florian Apolloner, Tim Graham, Simon Charette, Nick Pope, and Mariusz Felisiak for reviews. | ||||
* | Fixed #30397 -- Added app_label/class interpolation for names of indexes and ↵ | can | 2019-07-08 | 1 | -0/+18 |
| | | | | constraints. | ||||
* | Fixed #30159 -- Removed unneeded use of OrderedDict. | Nick Pope | 2019-02-06 | 1 | -2/+2 |
| | | | | Dicts preserve order since Python 3.6. | ||||
* | Refs #28750 -- Removed suppport for model Meta.manager_inheritance_from_future. | Tim Graham | 2019-01-17 | 1 | -2/+0 |
| | |||||
* | Fixed #11964 -- Added support for database check constraints. | Ian Foote | 2018-07-10 | 1 | -1/+2 |
| | |||||
* | Fixed #8936 -- Added a view permission and a read-only admin. | olivierdalang | 2018-05-16 | 1 | -1/+1 |
| | | | | | Co-authored-by: Petr Dlouhy <petr.dlouhy@email.cz> Co-authored-by: Olivier Dalang <olivier.dalang@gmail.com> | ||||
* | Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵ | Дилян Палаузов | 2018-01-12 | 1 | -6/+4 |
| | | | | continue statements. | ||||
* | Fixed #28750 -- Allowed models to define ↵ | Charlie Denton | 2017-10-31 | 1 | -0/+2 |
| | | | | | Meta.manager_inheritance_from_future for backwards compatibility. Refs 631f4ab06112aca5bd6a57b81159048f936050bf. | ||||
* | Refs #27532 -- Removed Model._meta.has_auto_field per deprecation timeline. | Tim Graham | 2017-09-22 | 1 | -15/+0 |
| | |||||
* | Fixed #27332 -- Added FilteredRelation API for conditional join (ON clause) ↵ | Nicolas Delaby | 2017-09-22 | 1 | -1/+9 |
| | | | | | support. Thanks Anssi Kääriäinen for contributing to the patch. | ||||
* | Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()." | Tim Graham | 2017-09-07 | 1 | -5/+12 |
| | | | | This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better. | ||||
* | Simplified model's Options._get_fields() a bit. | Sergey Fedoseev | 2017-08-31 | 1 | -7/+3 |
| | |||||
* | Removed unneeded iter() calls. | Sergey Fedoseev | 2017-08-23 | 1 | -1/+1 |
| | | | A few of these were unnecessarily added in 2b281cc35ed9d997614ca3c416928d7fabfef1ad. | ||||
* | Fixed #27818 -- Replaced try/except/pass with contextlib.suppress(). | Mads Jensen | 2017-06-28 | 1 | -12/+5 |
| | |||||
* | Fixed #28269 -- Fixed Model.__init__() crash on models with a field that has ↵ | Adam Johnson | 2017-06-05 | 1 | -4/+7 |
| | | | | | | an instance only descriptor. Regression in d2a26c1a90e837777dabdf3d67ceec4d2a70fb86. | ||||
* | Refs #23968 -- Removed unnecessary lists, generators, and tuple calls. | Jon Dufresne | 2017-06-01 | 1 | -1/+1 |
| | |||||
* | Fixed #28249 -- Removed unnecessary dict.keys() calls. | Jon Dufresne | 2017-05-27 | 1 | -1/+1 |
| | | | iter(dict) is equivalent to iter(dict.keys()). | ||||
* | Fixed #28222 -- Allowed settable properties in ↵ | Alex | 2017-05-27 | 1 | -4/+1 |
| | | | | QuerySet.update_or_create()/get_or_create() defaults. | ||||
* | Refs #27795 -- Replaced many force_text() with str() | Claude Paroz | 2017-04-27 | 1 | -2/+1 |
| | | | | Thanks Tim Graham for the review. | ||||
* | Refs #27656 -- Updated django.db docstring verbs according to PEP 257. | Anton Samarchyan | 2017-02-28 | 1 | -15/+11 |
| | |||||
* | Fixed #27742 -- Reverted "Fixed #24607 -- Serialized natural keys in ↵ | Tim Graham | 2017-02-11 | 1 | -6/+1 |
| | | | | | | | multi-table inheritance models." This reverts commit 74a575eb7296fb04e1fc2bd4e3f68dee3c66ee0a as it causes unexpected migrations and doesn't seem to be the best solution. | ||||
* | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | 2017-01-19 | 1 | -1/+1 |
| | |||||
* | Refs #23919 -- Removed most of remaining six usage | Claude Paroz | 2017-01-18 | 1 | -2/+1 |
| | | | | Thanks Tim Graham for the review. | ||||
* | Refs #23919 -- Removed six.<various>_types usage | Claude Paroz | 2017-01-18 | 1 | -2/+2 |
| | | | | Thanks Tim Graham and Simon Charette for the reviews. | ||||
* | Refs #23919 -- Removed python_2_unicode_compatible decorator usage | Claude Paroz | 2017-01-18 | 1 | -2/+1 |
| | |||||
* | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | 2017-01-18 | 1 | -2/+0 |
| | |||||
* | Removed Manager.use_for_related_fields and Meta.manager_inheritance_from_future. | Tim Graham | 2017-01-17 | 1 | -28/+2 |
| | | | | Per deprecation timeline. Refs ed0ff913c648b16c4471fc9a9441d1ee48cb5420. | ||||
* | Refs #26320 -- Removed implicit OneToOnField parent_link per deprecation ↵ | Tim Graham | 2017-01-17 | 1 | -4/+3 |
| | | | | timeline. | ||||
* | Refs #16508 -- Removed virtual aliases of "private fields". | Tim Graham | 2017-01-17 | 1 | -18/+1 |
| | | | | Per deprecation timeline. | ||||
* | Optimized Model instantiation a bit. | Adam Chainz | 2016-12-15 | 1 | -0/+11 |
| | | | | | | | * Avoid some unnecessary attribute lookups, e.g. access signals directly rather than from module * Alias some repeat accesses inside the method to use the slightly faster local lookups * Use tuple to iterate remaining kwargs as it's faster to construct * Cache Field.get_default() to avoid running through all the logic on every call * Use a cached list of the properties on the model class to avoid repeat isinstance() calls | ||||
* | Fixed #17002 -- Allowed using a ManyToManyField through model that inherits ↵ | InvalidInterrupt | 2016-12-07 | 1 | -0/+45 |
| | | | | another. | ||||
* | Fixed #27532 -- Deprecated Model._meta.has_auto_field | Adam Chainz | 2016-11-25 | 1 | -2/+15 |
| |