summaryrefslogtreecommitdiff
path: root/tests/admin_util
AgeCommit message (Collapse)Author
2014-12-31Renamed tests for util -> utils moves; refs #17627.Tim Graham
2014-12-23Removed admin_util test dependency on contrib.sitesClaude Paroz
2014-12-04Converted a SimpleTestCase that creates data to TestCase.Thomas Chaumeny
2014-06-05Fixed #10811 -- Made assigning unsaved objects to FK, O2O, and GFK raise ↵Anubhav Joshi
ValueError. This prevents silent data loss. Thanks Aymeric Augustin for the initial patch and Loic Bistuer for the review.
2014-02-15Fixed #22018 -- Fixed checks for ModelAdmin.fields not handling sub-lists.Aaron France
Flatten a level of sublists before checking for duplicate fields. When given sublists such as: ```python class FooAdmin(admin.ModelAdmin): fields = ('one', ('one', 'two')) ``` The previous code did not correctly detect the duplicated 'one' field. Thanks to jwa for the report.
2014-01-22Fixed #21846 -- Made NestedObjects handle related_name with %(app_label)s or ↵Loic Bistuer
%(class)s.
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-10-22Fixed E221 pep8 warnings.Tim Graham
2013-09-16Fixed #17627 -- Renamed util.py files to utils.pyTim Graham
Thanks PaulM for the suggestion and Luke Granger-Brown and Wiktor Kołodziej for the initial patch.
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-07-26Fixed #20805 -- Removed an extra colon beside checkboxes in the admin.Tim Graham
Thanks CollinAnderson for the report.
2013-06-10Fixed #18134 -- BoundField.label_tag now includes the form's label_suffixGabe Jackson
There was an inconsistency between how the label_tag for forms were generated depending on which method was used: as_p, as_ul and as_table contained code to append the label_suffix where as label_tag called on a form field directly did NOT append the label_suffix. The code for appending the label_suffix has been moved in to the label_tag code of the field and the HTML generation code for as_p, as_ul and as_table now calls this code as well. This is a backwards incompatible change because users who have added the label_suffix manually in their templates may now get double label_suffix characters in their forms.
2013-05-25Fixed #11725 -- Made possible to create widget label tag without "for"Claude Paroz
Thanks Denis Martinez for the report and initial patch, and Sergey Kolosov for bringing the patch up to date.
2013-05-21Fixed #17308 -- Enabled the use of short_description on properties in the admin.Wiktor Kolodziej
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner