summaryrefslogtreecommitdiff
path: root/tests/admin_views/models.py
AgeCommit message (Collapse)Author
2019-01-16Fixed #11154, #22270 -- Made proxy model permissions use correct content type.Arthur Rio
Co-Authored-By: Simon Charette <charette.s@gmail.com> Co-Authored-By: Antoine Catton <acatton@fusionbox.com>
2018-12-27Followed style guide for model attribute ordering.Matt Wiens
2018-12-10Moved choices inside of test models per coding style.Manan
2018-03-20Fixed #29227 -- Allowed BooleanField to be null=True.Tim Graham
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
2018-01-04Fixed #28517 -- Fixed admin delete confirmation view crash when related ↵Paulo
models don't have a delete permission.
2017-09-18Fixed #14370 -- Allowed using a Select2 widget for ForeignKey and ↵Johannes Hoppe
ManyToManyField in the admin. Thanks Florian Apolloner and Tim Graham for review and contributing to the patch.
2017-06-14Fixed #27998 -- Made ManyToManyField changes logged in admin's object history.Lincoln Smith
2017-06-05Fixed #28262 -- Fixed incorrect DisallowedModelAdminLookup when a nested ↵Paulo
reverse relation is in list_filter.
2017-03-06Fixed #27475 -- Fixed NonExistentTimeError crash in ModelAdmin.date_hierarchy.Anton Samarchyan
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-07Refs #26961 -- Fixed invalid ModelAdmins in tests.Adam Chainz
2016-09-12Fixed #26524 -- Fixed crash in admin change view when displaying many to ↵Jon Dufresne
many forward refs. Thanks Tim Graham for the regression test.
2016-08-10Fixed admin_views clashing field check error.Adam Chainz
admin_views.Recommendation.recommender: (models.E006) The field 'recommender' clashes with the field 'recommender' from model 'admin_views.title'.
2016-06-04Fixed #19963 -- Added support for date_hierarchy across relations.Vytis Banaitis
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-01-21Fixed #26060 -- Fixed crash with reverse OneToOneField in ↵Alexander Gaevsky
ModelAdmin.readonly_fields.
2016-01-09Refs #25165 -- Fixed JSON serialization for delete popup in the admin.Tim Graham
2016-01-08Refs #25165 -- Fixed JSON serialization for add/edit popup in the admin.Alexander Gaevsky
Forwardport of test in o839d71d8562abe0b245024e55ca1d02a45e58fd from stable/1.9.x (refs #25997).
2016-01-08Refs #25165 -- Fixed failure of admin's "Add another" popup to close.Tim Graham
Thanks Thomas Grainger for the fix.
2015-12-29Fixed #25465 -- Restored line breaks conversion in admin readonly fields.Alexander Gaevsky
2015-12-10Fixed #25883 -- Fixed admin deletion page summary counts for related objects.Sergey Fedoseev
2015-10-29Fixed #25622 -- Accounted for generic relations in the admin to field validationSimon Charette
Thanks to Jonathan Liuti for the report and Tim Graham for the review.
2015-09-03Fixed #25058 -- Added GenericRelations with related_query_name to the ↵sarthakmeh
admin's delete confirmation page.
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-21Refs #24919 -- Made test models serializable for migrations.Tim Graham
2015-07-17Fixed #16501 -- Added an allow_unicode parameter to SlugField.Edward Henderson
Thanks Flavio Curella and Berker Peksag for the initial patch.
2015-05-02Fixed #23387 -- Kept "Save as new" button after validation errors in admin.Adam Zapletal
When "Save as new" is chosen and errors occur, only show the "Save as new" button and not the other save buttons. Thanks to Tino de Bruijn for doing the real work on this fix.
2015-03-09Refs #24461 -- Added test/release notes for XSS issue in ↵Baptiste Mispelon
ModelAdmin.readonly_fields This issue was fixed by refs #24464.
2015-02-23Guaranteed removal of temporary files during tests.Aymeric Augustin
Dropped the DJANGO_TEST_TEMP_DIR environment variable. Before this change, proper removal depended on the developer passing dir=os.environ['DJANGO_TEST_TMP_DIR'] to tempfile functions.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-10Fixed #13165 -- Added edit and delete links to admin foreign key widgets.Simon Charette
Thanks to Collin Anderson for the review and suggestions and Tim for the final review.
2014-12-02Fixed #23934 -- Fixed regression in admin views obj parameter.Kamil Braun
2014-11-25Fixed #23915 -- Made sure m2m fields through non-pk to_field are allowed in ↵Simon Charette
the admin. refs #23754, #23862
2014-11-25Fixed #23754 -- Always allowed reference to the primary key in the adminSimon Charette
This change allows dynamically created inlines "Add related" button to work correcly as long as their associated foreign key is pointing to the primary key of the related model. Thanks to amorce for the report, Julien Phalip for the initial patch, and Collin Anderson for the review.
2014-10-19Fixed #21196 -- Removed index on test field causing MySQL specific warning.Thomas Chaumeny
2014-10-06Fixed #23604 -- Allowed related m2m fields to be references in the admin.Emmanuelle Delescolle
Thanks Simon Charette for review.
2014-09-08Fixed #23431 -- Allowed inline and hidden references to admin fields.Simon Charette
This fixes a regression introduced by the 53ff096982 security fix. Thanks to @a1tus for the report and Tim for the review. refs #23329.
2014-08-27Fixed #23329 -- Allowed inherited and m2m fields to be referenced in the admin.Simon Charette
Thanks to Trac alias Markush2010 and ross for the detailed reports.
2014-03-25Fixed #22087 -- Made AdminReadonlyField respect ModelForm Meta overrides.Ben Davis
2014-02-14Fixed #21924 -- Added the ability to specify a reverse order for ↵Klemens Mantzos
admin_order_field. Thanks Klemens Mantzos for the report and initial patch.
2014-02-11Fixed #2445 -- Allowed limit_choices_to attribute to be a callable.Christopher Adams
ForeignKey or ManyToManyField attribute ``limit_choices_to`` can now be a callable that returns either a ``Q`` object or a dict. Thanks michael at actrix.gen.nz for the original suggestion.
2014-01-26Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette
It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
2013-11-25Fixed #20522 - Allowed use of partially validated object in ↵Jay Leadbetter
ModelAdmin.add_view formset validation. Updated ModelAdmin to use form.instance when passing parent model to child inlines for add_view. There is effectively no change in the change_view since the previously passed 'obj' is the same as form.instance. Thanks to meshy for report, and EvilDMP and timo for review.
2013-11-21Refs #8261 -- Fixed regression introduced by fd219fa.Loic Bistuer
ModelAdmin displayed the "View on site" link even if the Model didn't define the `get_absolute_url()` method.
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02Fixed all E261 warningscoagulant
2013-10-29Fixed #8261 -- ModelAdmin hook for customising the "show on site" buttonUnai Zalakain
``ModelAdmin.view_on_site`` defines wether to show a link to the object on the admin detail page. If ``True``, cleverness (i.e. ``Model.get_absolute_url``) is used to get the url. If it's a callable, the callable is called with the object as the only parameter. If ``False``, not link is displayed. With the aim of maitaining backwards compatibility, ``True`` is the default.
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol