summaryrefslogtreecommitdiff
path: root/django/contrib/admin/utils.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed #26060 -- Fixed crash with reverse OneToOneField in ↵Alexander Gaevsky2016-01-211-1/+1
| | | | ModelAdmin.readonly_fields.
* Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek2015-12-311-1/+1
| | | | Thanks to Tim Graham for the review.
* Fixed #25883 -- Fixed admin deletion page summary counts for related objects.Sergey Fedoseev2015-12-101-3/+4
|
* Refs #25294 -- Moved BoundField to django.forms.boundfield.Moritz Sichert2015-09-161-1/+1
|
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-311-5/+0
|
* Fixed #25299 -- Fixed crash with ModelAdmin.list_display value that clashes ↵Tim Graham2015-08-281-1/+6
| | | | with a model reverse accessor.
* Fixed #24962 -- Added newline to characters escaped by ↵Tim Graham2015-06-181-1/+1
| | | | | | contrib.admin.utils.quote() Thanks alito for the report and patch.
* Fixed #24474 -- Allowed configuring the admin's empty change list value.Loek van Gent2015-06-041-7/+5
|
* Fixed #16609 -- Fixed duplicate admin results when searching nested M2M ↵Samuel Paccoud2015-05-061-4/+15
| | | | | | | | relations. This was fixed earlier but only when the M2M relation was at the first level on the object. This commit fixes the issue even when the M2M is at deeper levels, such as behind a foreign key.
* Fixed #24593 -- Fixed number formatting of readonly IntegerFields in the admin.Eric Rouleau2015-04-141-1/+1
|
* Revert "Fixed #24474 -- Allowed configuring the admin's empty change list ↵Tim Graham2015-04-081-5/+7
| | | | | | | | value." This reverts commit 72f769f494822981db6df9524b92a2d86f8e69fe. There are several test failures that need to be fixed.
* Fixed #24474 -- Allowed configuring the admin's empty change list value.Loek van Gent2015-04-081-7/+5
|
* Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen2015-03-251-21/+1
| | | | | | | | Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True.
* Used format_html() in contrib.admin.utils for consistency.Tim Graham2015-03-041-6/+2
|
* Fixed #24381 -- removed ForeignObjectRel opts and to_optsAnssi Kääriäinen2015-02-231-1/+1
| | | | | | | | | These cached properies were causing problems with pickling, and in addition they were confusingly defined: field.rel.model._meta was not the same as field.rel.opts. Instead users should use field.rel.related_model._meta inplace of field.rel.opts, and field.rel.to._meta in place of field.rel.to_opts.
* Fixed #24289 -- Reversed usage of Field.many_to_one and one_to_many.Loic Bistuer2015-02-141-1/+1
| | | | | Thanks Carl Meyer and Tim Graham for the reviews and to all involved in the discussion.
* Refs #14497 -- Handled empty readonly admin FileFieldsCollin Anderson2015-02-111-1/+1
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-1/+1
|
* Fixed #14497 -- Improved admin widget for "read only" FileFieldsRiccardo Magliocchetti2015-02-041-7/+11
| | | | Based on patch by Adam J Forster, Paul Collins, and Julien.
* Fixed #12663 -- Formalized the Model._meta API for retrieving fields.Daniel Pyrathon2015-01-061-9/+21
| | | | | Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
* Fixed #9104 -- Moved FieldDoesNotExist to core.exceptionsDaniel Pyrathon2015-01-021-3/+4
|
* Fixed #21414 -- Removed RelatedObject and deprecated Field.related.Anssi Kääriäinen2014-12-231-1/+1
|
* Removed redundant numbered parameters from str.format().Berker Peksag2014-12-031-1/+1
| | | | Since Python 2.7 and 3.1, "{0} {1}" is equivalent to "{} {}".
* Fixed #20133 -- Added summary to admin deletion confirmation pages.areski2014-08-141-1/+4
| | | | Thanks jonash for the suggestion and initial patch.
* Fixed #22223 -- Prevented over-escaping URLs in reverse()Claude Paroz2014-07-091-1/+1
| | | | | | | And follow more closely the class of characters defined in the RFC 3986. Thanks Erik van Zijst for the report and the initial patch, and Tim Graham for the review.
* Fixed #22207 -- Added support for GenericRelation reverse lookupsGabe Jackson2014-03-051-1/+1
| | | | | | | | | GenericRelation now supports an optional related_query_name argument. Setting related_query_name adds a relation from the related object back to the content type for filtering, ordering and other query operations. Thanks to Loic Bistuer for spotting a couple of important issues in his review.
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-1/+1
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Split line and added indentation for better readability.Aleksander Budzinski2014-02-151-2/+4
|
* Fixed #22018 -- Fixed checks for ModelAdmin.fields not handling sub-lists.Aaron France2014-02-151-5/+15
| | | | | | | | | | | | | | | | 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.
* Fixed #2445 -- Allowed limit_choices_to attribute to be a callable.Christopher Adams2014-02-111-6/+6
| | | | | | | 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.
* Fixed #21846 -- Made NestedObjects handle related_name with %(app_label)s or ↵Loic Bistuer2014-01-221-2/+6
| | | | %(class)s.
* Removed isinstance(RelatedObject) checks from admin.utilsAnssi Kääriäinen2013-11-211-9/+6
|
* Fixed #21431 -- GenRel->FK list_filter regression in adminAnssi Kääriäinen2013-11-211-4/+2
| | | | Report, analysis and tests from stephenmcd.
* Fixed all E226 violationsAlex Gaynor2013-11-031-1/+1
|
* Fixed all E261 warningscoagulant2013-11-021-6/+6
|
* Started attackign the next flake8 violationAlex Gaynor2013-10-311-0/+3
|
* Fixed #17627 -- Renamed util.py files to utils.pyTim Graham2013-09-161-0/+473
| | | | | Thanks PaulM for the suggestion and Luke Granger-Brown and Wiktor Kołodziej for the initial patch.
* Merged the newforms-admin branch into trunk.Brian Rosner2008-07-181-103/+0
| | | | | | | | This is a backward incompatible change. The admin contrib app has been refactored. The newforms module has several improvements including FormSets and Media definitions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7967 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Implemented auto-escaping of variable output in templates. Fully ↵Malcolm Tredinnick2007-11-141-1/+2
| | | | | | | | | | | | | | controllable by template authors and it's possible to write filters and templates that simulataneously work in both auto-escaped and non-auto-escaped environments if you need to. Fixed #2359 See documentation in templates.txt and templates_python.txt for how everything works. Backwards incompatible if you're inserting raw HTML output via template variables. Based on an original design from Simon Willison and with debugging help from Michael Radziej. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6671 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed a bunch of spurious imports, typos, and other small errors turned up ↵Jacob Kaplan-Moss2006-07-211-1/+0
| | | | | | by a pass through PyFlakes. This covers about the first third of the errors. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Eliminated lots of mutable default arguments (since they are bugsLuke Plant2006-06-031-2/+6
| | | | | | | waiting to happen and are memory leaks too). git-svn-id: http://code.djangoproject.com/svn/django/trunk@3070 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly ↵Adrian Holovaty2006-05-021-3/+3
| | | | | | backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #985 -- Fixed admin docs behavior if docutils isn't installed. Thanks, ↵Adrian Holovaty2005-12-071-4/+6
| | | | | | Tim Keating git-svn-id: http://code.djangoproject.com/svn/django/trunk@1563 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Moved parts/admin/doc.py to contrib/admin/utils.py, where it belongs. Also ↵Adrian Holovaty2005-11-271-0/+97
caught docutils ImportError in a more controlled way git-svn-id: http://code.djangoproject.com/svn/django/trunk@1463 bcc190cf-cafb-0310-a4f2-bffc1f526a37