summaryrefslogtreecommitdiff
path: root/tests/admin_views/admin.py
AgeCommit message (Collapse)Author
2017-08-31[1.11.x] Fixed #27998, #28543 -- Restored logging of ManyToManyField changes ↵Tim Graham
in admin's object history. And prevented ManyToManyField initial data in model forms from being affected by subsequent model changes. Regression in 56a55566a791a11420fe96f745b7489e756fc931. Partial backport of e5bd585c6eb1e13e2f8aac030b33c077b0b70c05 and 15b465c584f49a1d43b6c18796f83521ee4ffc22 from master
2017-06-06[1.11.x] Fixed #28202 -- Fixed FieldListFilter.get_queryset() crash on ↵Paulo
invalid input. Backport of 4ad2f862844d35404e4798b3227517625210a72e from master
2017-06-05[1.11.x] Fixed #28262 -- Fixed incorrect DisallowedModelAdminLookup when a ↵Paulo
nested reverse relation is in list_filter. Backport of b7f99f84bcc4a06114ac31174840efab0aef7602 from master
2017-01-07Refs #26961 -- Fixed invalid ModelAdmins in tests.Adam Chainz
2016-12-14Fixed #27313 -- Allowed overriding admin popup response template.Michael Scott
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-10-13Fixed #26954 -- Prevented ModelAdmin.has_module_permission()=False from ↵Halil Kaya
blocking access to the app index page.
2016-08-11Fixed #26919 -- Added the action form's media in the changelist view.Stanislav Karpov
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-08Fixed #26290 -- Warned that paginating an unordered QuerySet may result in ↵Emad Mokhtar
inconsistent results.
2016-06-04Fixed #19963 -- Added support for date_hierarchy across relations.Vytis Banaitis
2016-04-20Fixed #16327 -- Redirected "Save as new" to change view instead of the ↵Markus Amalthea Magnuson
changelist.
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-03-25Fixed #26387 -- Restored the functionality of the admin's raw_id_fields in ↵Tim Graham
list_editable.
2016-02-02Fixed #24316 -- Made ModelAdmin.list_display callables use an appropriate ↵Tim Graham
CSS class name. Thanks Berker Peksag for the review.
2016-01-21Fixed #26060 -- Fixed crash with reverse OneToOneField in ↵Alexander Gaevsky
ModelAdmin.readonly_fields.
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).
2015-12-29Fixed #25465 -- Restored line breaks conversion in admin readonly fields.Alexander Gaevsky
2015-12-21Fixed #25903 -- Fixed the admin's list_editable add/change buttons.Tim Graham
2015-11-19Renamed __unicode__() to __str__() in some test comments.Tim Graham
2015-11-17Fixed #25682 -- Removed bare except clauses.Attila Tovt
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-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-09-08Fixed #25135 -- Deprecated the contrib.admin allow_tags attribute.Ola Sitarska
Thanks Jaap Roes for the idea and initial patch.
2015-09-03Fixed #25058 -- Added GenericRelations with related_query_name to the ↵sarthakmeh
admin's delete confirmation page.
2015-08-28Fixed #25299 -- Fixed crash with ModelAdmin.list_display value that clashes ↵Tim Graham
with a model reverse accessor.
2015-07-17Fixed #16501 -- Added an allow_unicode parameter to SlugField.Edward Henderson
Thanks Flavio Curella and Berker Peksag for the initial patch.
2015-07-06Refs #4960 -- Fixed selenium test failures for CharField strip changes.Tim Graham
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-14Fixed #15779 -- Allowed 'add' primary key in admin editionClaude Paroz
Thanks Marwan Alsabbagh for the report, and Simon Charette and Tim Graham for the reviews.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-05Removed old import aliases.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 #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-06Fixed #23604 -- Allowed related m2m fields to be references in the admin.Emmanuelle Delescolle
Thanks Simon Charette for review.
2014-09-26Fixed #8408 -- Added ModelAdmin.show_full_result_count to avoid COUNT() query.Thomas Chaumeny
Thanks lidaobing for the suggestion.
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-08-27Fixed #13749 -- Added link from admin site to front-end site.areski
Thanks romankrv for the suggestion.
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-13Fixed #6327 -- Added has_module_permission method to BaseModelAdminMaxime Turcotte
Thanks chrj for the suggestion.
2014-05-28Fixed several typos in DjangoAlex Gaynor
2014-04-26Fix many many typos in comments throughout the codebaseAlex Gaynor
2014-04-03Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2014-03-25Fixed #22087 -- Made AdminReadonlyField respect ModelForm Meta overrides.Ben Davis
2014-03-22Fixed #22241 -- Selectively added line breaks in admin read-only fieldsClaude Paroz
When content is supposed to contain HTML, we do not try to add line breaks in read-only contents. Thanks Alexander Todorov for the report.