summaryrefslogtreecommitdiff
path: root/tests/model_meta/tests.py
AgeCommit message (Collapse)Author
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2024-05-07Fixed #35407 -- Cached model's Options.swapped.Adam Johnson
2024-02-26Fixed #35241 -- Cached model's full parent list.Adam Johnson
co-authored-by: Keryn Knight <keryn@kerynknight.com> co-authored-by: Natalia <124304+nessita@users.noreply.github.com> co-authored-by: David Smith <smithdc@gmail.com> co-authored-by: Paolo Melchiorre <paolo@melchiorre.org>
2024-02-19Refs #28011 -- Removed ForeignObjectRel.is_hidden().Adam Johnson
2024-02-19Fixed #35232 -- Cached model's Options.verbose_name_raw.Adam Johnson
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-12-30Fixed #32294 -- Prevented ManyToManyField's hidden related name collisions ↵manav014
between apps.
2020-08-05Fixed #26977 -- Made abstract models raise TypeError when instantiating.Jacob Walls
2020-02-04Simplified imports from django.db and django.contrib.gis.db.Nick Pope
2019-09-09Refs #29444 -- Allowed returning multiple fields from INSERT statements on ↵Johannes Hoppe
PostgreSQL. Thanks Florian Apolloner, Tim Graham, Simon Charette, Nick Pope, and Mariusz Felisiak for reviews.
2019-03-02Merged isinstance() calls.Jon Dufresne
Follow up to 0214f367bc84d7217e42ae0441d500d31c6a5b78.
2017-06-05Fixed #28269 -- Fixed Model.__init__() crash on models with a field that has ↵Adam Johnson
an instance only descriptor. Regression in d2a26c1a90e837777dabdf3d67ceec4d2a70fb86.
2017-06-05Added a test for Model._meta._property_names.Adam Johnson
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2016-04-13Refs #16508 -- Renamed the current "virtual" fields to "private".Michal Petrucha
The only reason why GenericForeignKey and GenericRelation are stored separately inside _meta is that they need to be cloned for every model subclass, but that's not true for any other virtual field. Actually, it's only true for GenericRelation.
2016-03-19Refs #24227 -- Replaced M2M isinstance checks by field.many_to_manyClaude Paroz
Thanks Markus Holtermann, Collin Anderson and Tim Graham for the reviews.
2016-01-25Fixed #26125 -- Fixed E731 flake warnings.userimack
2015-10-12Refs #18012 -- Made proxy and concrete model reverse fields consistent.Simon Charette
Prior to this change proxy models reverse fields didn't include the reverse fields pointing to their concrete model.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-05-12Fixed #24156 -- Fixed inherited related name of ManyToManyField.Andriy Sokolovskiy
Fixed situation when parent abstract model declares related_name='+', and child models had an invalid queryset.
2015-05-02Fixed #24693 -- Added label and label_lower property to Model._metaLuis Del Giudice
2015-03-26Fixed #24505 -- Fixed clash with hidden m2m fields.Marco Fucci
Added support for multiple m2m fields with the same 'to' model and with related_name set to '+'.
2015-03-25Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen
Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True.
2015-02-20Fixed #24328 -- cleaned up Options._get_fields() implementationAnssi Kääriäinen
2015-02-10Fixed #24146 -- Allowed model._meta.get_field() to be used after ↵Daniel Pyrathon
apps.models_ready
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-03Fixed #24266 -- Changed get_parent_list to return a list ordered by MRO.Simon Charette
Thanks to Aron Podrigal for the initial patch and Tim for the review.
2015-02-03Reverted "Fixed #24146 -- Fixed a missing fields regression in admin checks."Tim Graham
This reverts commit e8171daf0cd7f0e070395cb4c850c17fea32f11d. A new solution is forthcoming.
2015-01-16Fixed #24146 -- Fixed a missing fields regression in admin checks.Collin Anderson
This allows using get_field() early in the app loading process. Thanks to PirosB3 and Tim Graham.
2015-01-14Fixed incorrect error message in Options.get_fields()Collin Anderson
2015-01-06Fixed #12663 -- Formalized the Model._meta API for retrieving fields.Daniel Pyrathon
Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!