summaryrefslogtreecommitdiff
path: root/tests/model_meta
AgeCommit message (Collapse)Author
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.
2019-01-17Refs #28750 -- Removed suppport for model Meta.manager_inheritance_from_future.Tim Graham
2017-10-31Fixed #28750 -- Allowed models to define ↵Charlie Denton
Meta.manager_inheritance_from_future for backwards compatibility. Refs 631f4ab06112aca5bd6a57b81159048f936050bf.
2017-09-22Refs #27532 -- Removed Model._meta.has_auto_field per deprecation timeline.Tim Graham
2017-06-26Refs #23919 -- Stopped inheriting from object to define new style classes.Mariusz Felisiak
Tests and docs complement to cecc079168e8669138728d31611ff3a1e7eb3a9f.
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-11-25Fixed #27532 -- Deprecated Model._meta.has_auto_fieldAdam Chainz
2016-09-09Refs #25415 -- Fixed invalid models in the test suite.Adam Chainz
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-10-12Fixed #18012 -- Propagated reverse foreign keys from proxy to concrete models.Simon Charette
Thanks to Anssi for the review.
2015-09-23Refs #12663 -- Removed deprecated Model._meta methods.Tim Graham
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
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!
2015-01-02Fixed #9104 -- Moved FieldDoesNotExist to core.exceptionsDaniel Pyrathon
2014-12-23Fixed #21414 -- Removed RelatedObject and deprecated Field.related.Anssi Kääriäinen
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
2014-11-03Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag
2014-07-14Fixed #22994 -- regression with generic FK + admin list_viewAnssi Kääriäinen
The reason for the regression was that the GenericForeignKey field isn't something meta.get_field_by_name() should return. The reason is that a couple of places in Django expects get_field_by_name() to work this way. It could make sense to return GFKs from get_field_by_name(), but that should likely be done as part of meta refactoring or virtual fields refactoring patches. Thanks to glicerinu@gmail.com for the report and to Tim for working on the issue.
2014-06-19Refs #12663 -- Added tests for methods in db.models.options.Daniel Pyrathon
Thanks Russell Keith-Magee and Tim Graham for reviews.