summaryrefslogtreecommitdiff
path: root/tests/proxy_models/models.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-6/+27
|
* Fixed #28776 -- Fixed a/an/and typos in docs and comments.Дилян Палаузов2017-11-061-1/+1
|
* Sorted imports per isort 4.2.9.Tim Graham2017-06-011-1/+0
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-2/+2
|
* Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz2017-01-181-6/+0
|
* Fixed #10506, #13793, #14891, #25201 -- Introduced new APIs to specify ↵Loïc Bistuer2016-05-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | models' default and base managers. This deprecates use_for_related_fields. Old API: class CustomManager(models.Model): use_for_related_fields = True class Model(models.Model): custom_manager = CustomManager() New API: class Model(models.Model): custom_manager = CustomManager() class Meta: base_manager_name = 'custom_manager' Refs #20932, #25897. Thanks Carl Meyer for the guidance throughout this work. Thanks Tim Graham for writing the docs.
* Fixed #11560 -- Allowed proxy model multiple-inheritance from the same ↵Akshesh2016-03-301-0/+10
| | | | concrete base model.
* Fixed #18012 -- Propagated reverse foreign keys from proxy to concrete models.Simon Charette2015-10-121-1/+1
| | | | Thanks to Anssi for the review.
* Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella2015-07-271-5/+5
| | | | ForeignKey/OneToOneField
* Fixed #24328 -- cleaned up Options._get_fields() implementationAnssi Kääriäinen2015-02-201-1/+1
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-0/+1
|
* Fixing E302 ErrorsJason Myers2013-11-021-0/+26
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed #20777 -- Admin proxy model deletion regressionAnssi Kääriäinen2013-08-191-1/+5
| | | | Added proxy_models tests by Harm Geerts <github@geertswei.nl>.
* Fixed #15363 -- Renamed and normalized to `get_queryset` the methods that ↵Loic Bistuer2013-03-081-4/+4
| | | | return a QuerySet.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-261-0/+169