summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_changelist
AgeCommit message (Collapse)Author
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner
2012-12-24Use new TestCase methods for equality comparisonsIan Clelland
2012-11-25Fixed #17646 -- Added a get_list_filter() method to ModelAdmin. Thanks to ↵Julien Phalip
rasca for the suggestion and to mateusgondim for the patch.
2012-09-24Fixed #18072 -- Made more admin links use reverse() instead of hard-coded ↵Ramiro Morales
relative URLs. Thanks kmike for the report and initial patch for the changelist->edit object view link URL. Other affected links include the delete object one and object history one (in this case the change had been implemented in commit 5a9e127, this commit adds admin-quoting of the object PK in a way similar to a222d6e.) Refs #15294.
2012-08-15Fixed the admin_changelist tests for python3.Alex Gaynor
2012-08-12[py3] Refactored __unicode__ to __str__.Aymeric Augustin
* Renamed the __unicode__ methods * Applied the python_2_unicode_compatible decorator * Removed the StrAndUnicode mix-in that is superseded by python_2_unicode_compatible * Kept the __unicode__ methods in classes that specifically test it under Python 2
2012-07-22[py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin
2012-07-15Avoid using a column named "date" in testsAnssi Kääriäinen
Oracle can have problems with such columns. Fixed #17932 again. Thanks to Vinay Sajip for the report.
2012-04-29Fixed #13196 -- Formatting in admin changelists.Aymeric Augustin
Handled values returned by functions more like field values. In particular, localized dates, times and datetimes properly, and converted datetimes to the current timezone.
2012-04-09Fixed #18086 -- Restored '-pk' as the default order in the admin changelist. ↵Julien Phalip
This rectifies a slight change in behavior introduced in Django 1.4 and r17635. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17881 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-30Removed with_statement imports, useless in Python >= 2.6. Refs #17965. ↵Claude Paroz
Thanks jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-19Fixed #17932 -- Tweaked the admin_changelist tests because Oracle doesn't ↵Aymeric Augustin
like columns named 'number'. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17767 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-03Fixed #17198 -- Ensured that a deterministic order is used across all ↵Julien Phalip
database backends for displaying the admin change list's results. Many thanks to Luke Plant for the report and general approach, to everyone involved in the design discussions, and to Carl Meyer for the patch review. Refs #16819. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17635 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-17Fixed #17128 -- Fixed a Python 2.5 incompatibility. Thanks, Simon Meers.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17102 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-26Fixed #16257 -- Added new `ModelAdmin.get_list_display_links()` method to ↵Julien Phalip
allow for the dynamic display of links on the admin changelist. Thanks to graveyboat for the suggestion and initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17037 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-26Fixed #17090 -- Made the API specification for ↵Julien Phalip
`ModelAdmin.get_list_display()` more consistent with that of `ModelAdmin.list_display` by separating out the admin action check boxes business. This is backwards-incompatible for those who have been using the still-unreleased `get_list_display()` method. Thanks to Ramiro Morales for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17035 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-13Convert much of the regression tests to use absolute imports. There's still ↵Alex Gaynor
work to be done though. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-20Improved test isolation of the admin tests and assigned custom admin sites toRamiro Morales
prevent test order dependant failures. This involves introducing usage of `TestCase.urls` and implementing proper admin.py modules for some of the test apps. Thanks Florian Apolloner for finding the issue and contributing the patch. Refs #15294 (it solves these problems so the fix for that ticket we are going to commit doesn't introduce obscure and hard to reproduce test failures when running the Django test suite.) git-svn-id: http://code.djangoproject.com/svn/django/trunk@16856 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-08Fixed #15997 -- Added `list_max_show_all` option to `ModelAdmin` in ↵Jannis Leidel
replacement for a global module level variable. Thanks, jsdalton. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16725 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-08Fixed an unnecessary use of TransactionTestCaseLuke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16341 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-08Fixed #14206 - dynamic list_display support in adminLuke Plant
Thanks to gabejackson for the suggestion, and to cyrus for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16340 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-23Fixed #15819 - Fixed 1.3 regression from r15526 causing duplicate search ↵Carl Meyer
results in admin with search_fields traversing to non-M2M related models. Thanks to Adam Kochanowski for the report and Ryan Kaskel for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16093 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-09Fixed a bunch more tests that were failing in Oracle due to false ↵Ian Kelly
assumptions about the primary keys of objects. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15789 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-26Fixed #11447 -- Ensured that ForeignKey widgets in a list-editable admin ↵Russell Keith-Magee
changelist won't wrap split the widget. Thanks to patrick@vonautomatisch.at for the report, and Julien Phalip for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15656 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-19Fixed #12893 -- Added tests to validate that the right queryset is always ↵Russell Keith-Magee
used in model admins. Thanks to mk and Julien Phalip for their work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15578 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-19Fixed #15291 -- Corrected alignment issue when actions are disabled in a ↵Russell Keith-Magee
ModelAdmin. Thanks to Julien Phalip for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15573 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-13Fixed #13902 -- Fixed admin list_filter so it doesn't show duplicate results ↵Ramiro Morales
when it includes a field spec that involves m2m relationships with an intermediate model. Thanks Iván Raskovsky for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15526 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-24Fixed #14982 -- Ensure that EMPTY_CHANGELIST_VALUE is honored for nullable ↵Russell Keith-Magee
foreign keys. Thanks to marcob for the report and fix, and to sontek for the test case. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15286 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-21Rectified bugs that were accidentally committed in r14997. Thanks for the ↵Jannis Leidel
heads-up, Alex Gaynor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15011 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-21Fixed #14900 -- Added ability to override the paginator class used in a ↵Jannis Leidel
ModelAdmin. Thanks, Adam Vandenberg. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14997 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-12Fixed #14312 -- Raising an ``IncorrectLookupParameters`` if the page number ↵Jannis Leidel
given to an admin change list exceeds the number of the last page. Thanks, mk. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14889 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-04Removed all usages of deprecated TestCase methods (self.fail*). This ↵Alex Gaynor
removed most of the Warnings emitted (with -Wall) during the test suite. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-11Fixed #13599 -- No longer embed hidden `<td>` elements in `ChangeList` that ↵Justin Bronn
cause improper rendering when `list_editable` is enabled; refactored `admin_changelist` tests. Thanks, skevy for bug report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-01Fixed #11791: Put hidden input elements in the change list inside td ↵Karen Tracey
elements so they're valid HTML. Thanks panni and mlavin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12631 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-14Fixed #10348: ChangeList no longer overwrites a select_related provided by ↵Jacob Kaplan-Moss
`ModelAdmin.queryset()`. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10782 bcc190cf-cafb-0310-a4f2-bffc1f526a37