Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/model_meta
Commit message (Collapse)AuthorAgeFilesLines
* Refs #18012 -- Made proxy and concrete model reverse ↵Simon Charette2015-10-123-3/+99
| | | | | | | fields consistent. Prior to this change proxy models reverse fields didn't include the reverse fields pointing to their concrete model.
* Fixed #18012 -- Propagated reverse foreign keys from ↵Simon Charette2015-10-122-1/+7
| | | | | | proxy to concrete models. Thanks to Anssi for the review.
* Refs #12663 -- Removed deprecated Model._meta methods.Tim Graham2015-09-241-166/+0
|
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-7/+6
|
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-14/+17
| | | | on_delete for ForeignKey/OneToOneField
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-8/+8
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-202-5/+5
|
* Fixed #24156 -- Fixed inherited related name of ↵Andriy Sokolovskiy2015-05-132-11/+11
| | | | | | | ManyToManyField. Fixed situation when parent abstract model declares related_name='+', and child models had an invalid queryset.
* Fixed #24693 -- Added label and label_lower property to ↵Luis Del Giudice2015-05-022-0/+23
| | | | Model._meta
* Fixed #24505 -- Fixed clash with hidden m2m fields.Marco Fucci2015-03-272-11/+11
| | | | | Added support for multiple m2m fields with the same 'to' model and with related_name set to '+'.
* Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen2015-03-251-1/+1
| | | | | | | | 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.
* Fixed #24328 -- cleaned up Options._get_fields() ↵Anssi Kääriäinen2015-02-201-8/+5
| | | | implementation
* Fixed #24146 -- Allowed model._meta.get_field() to be ↵Daniel Pyrathon2015-02-111-2/+2
| | | | used after apps.models_ready
* Sorted imports with isort; refs #23860.Tim Graham2015-02-064-12/+13
|
* Fixed #24266 -- Changed get_parent_list to return a list ↵Simon Charette2015-02-032-1/+29
| | | | | | ordered by MRO. Thanks to Aron Podrigal for the initial patch and Tim for the review.
* Reverted "Fixed #24146 -- Fixed a missing fields ↵Tim Graham2015-02-031-11/+5
| | | | | | | | regression in admin checks." This reverts commit e8171daf0cd7f0e070395cb4c850c17fea32f11d. A new solution is forthcoming.
* Fixed #24146 -- Fixed a missing fields regression in ↵Collin Anderson2015-01-161-5/+11
| | | | | | | | admin checks. This allows using get_field() early in the app loading process. Thanks to PirosB3 and Tim Graham.
* Fixed incorrect error message in Options.get_fields()Collin Anderson2015-01-141-3/+3
|
* Fixed #12663 -- Formalized the Model._meta API for ↵Daniel Pyrathon2015-01-074-661/+1209
| | | | | | | retrieving fields. Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
* Fixed #9104 -- Moved FieldDoesNotExist to core.exceptionsDaniel Pyrathon2015-01-021-2/+2
|
* Fixed #21414 -- Removed RelatedObject and deprecated ↵Anssi Kääriäinen2014-12-231-155/+155
| | | | Field.related.
* Fixed #23968 -- Replaced list comprehension with ↵Jon Dufresne2014-12-081-2/+2
| | | | generators and dict comprehension
* Fixed #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-031-3/+3
| | | | Django test suite.
* Fixed #22994 -- regression with generic FK + admin list_viewAnssi Kääriäinen2014-07-141-5/+10
| | | | | | | | | | | | 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.
* Refs #12663 -- Added tests for methods in db.models.options.Daniel Pyrathon2014-06-193-0/+776
Thanks Russell Keith-Magee and Tim Graham for reviews.