summaryrefslogtreecommitdiff
path: root/tests/admin_ordering
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-072-39/+57
|
* Fixed #32003 -- Added obj argument to has_perm() methods in tests.Alexander Todorov2020-09-141-1/+1
|
* Made reused RequestFactory instances class attributes.Simon Charette2018-11-271-3/+1
|
* Switched setUp() to setUpTestData() where possible in Django's tests.Simon Charette2018-11-271-10/+16
|
* Removed unnecessary trailing commas and spaces in various code.Mariusz Felisiak2017-12-281-1/+1
|
* Refs #28958 -- Added a test for ModelAdmin with query expressions in ordering.Mariusz Felisiak2017-12-271-0/+8
| | | | This provides additional test coverage but isn't a regression test for the ticket's issue.
* Replaced type-specific assertions with assertEqual().Tim Graham2017-03-171-9/+8
| | | Python docs say, "it's usually not necessary to invoke these methods directly."
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-2/+2
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-191-2/+2
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-182-3/+0
|
* Fixed E305 flake8 warnings.Ramin Farajpour Cami2016-11-141-0/+1
|
* Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za2016-11-101-1/+1
|
* Fixed #25985 -- Updated signature of ModelAdmin.formfield_for_* to make ↵Tim Graham2015-12-291-6/+6
| | | | request a positional argument.
* Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella2015-07-271-1/+1
| | | | ForeignKey/OneToOneField
* Refs #24553 -- Isolated admin_* tests.Riccardo Magliocchetti2015-05-141-16/+18
| | | | | | | This fixes a regression with runtests.py --reverse after bd53db5eab05099ae371348529c6428e0da95c6a We need to avoid leaking model registration in the default AdminSite.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-3/+5
|
* Fixed #13163 -- Added ability to show change links on inline objects in admin.Nick Sandford2014-07-311-5/+5
| | | | Thanks DrMeers for the suggestion.
* Fixed #6327 -- Added has_module_permission method to BaseModelAdminMaxime Turcotte2014-06-131-0/+3
| | | | Thanks chrj for the suggestion.
* Harmonized some PEP 0263 coding preamblesClaude Paroz2014-05-151-1/+1
|
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-1/+1
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Fixed some flake8 issuesAlex Gaynor2013-11-221-0/+1
|
* Fixed #21405 -- Prevented queryset overwrite in BaseModelAdminClaude Paroz2013-11-211-0/+22
| | | | | Thanks guido@20tab.com for the report and Tim Graham for the analyze.
* Made minor optimizations to admin_ordering testsClaude Paroz2013-11-211-36/+30
|
* PEP8 cleanupJason Myers2013-11-022-0/+5
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed all E261 warningscoagulant2013-11-021-1/+1
|
* Removed most of absolute_import importsClaude Paroz2013-07-291-1/+1
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Fixed #15363 -- Renamed and normalized to `get_queryset` the methods that ↵Loic Bistuer2013-03-081-10/+10
| | | | return a QuerySet.
* Fixed #6585 -- Admin relationship widgets: Respect ordering defined by ↵Juan Pedro Fisanotti2013-03-042-0/+49
| | | | | | | target model's ModelAdmin. Thanks Gary Wilson for the report and Juan Pedro Fisanotti, Carlos Matías de la Torre for the fix.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+141