Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/contrib/admin/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* 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 ↵Tim Graham2015-08-281-1/+6
| | | | value that clashes 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 ↵Loek van Gent2015-06-051-7/+5
| | | | change list value.
* Fixed #16609 -- Fixed duplicate admin results when ↵Samuel Paccoud2015-05-061-4/+15
| | | | | | | | searching nested M2M 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 ↵Eric Rouleau2015-04-141-1/+1
| | | | IntegerFields in the admin.
* Revert "Fixed #24474 -- Allowed configuring the admin's ↵Tim Graham2015-04-091-5/+7
| | | | | | | | empty change list value." This reverts commit 72f769f494822981db6df9524b92a2d86f8e69fe. There are several test failures that need to be fixed.
* Fixed #24474 -- Allowed configuring the admin's empty ↵Loek van Gent2015-04-091-7/+5
| | | | change list value.
* 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 ↵Loic Bistuer2015-02-131-1/+1
| | | | | | | one_to_many. 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" ↵Riccardo Magliocchetti2015-02-041-7/+11
| | | | | | FileFields Based on patch by Adam J Forster, Paul Collins, and Julien.
* Fixed #12663 -- Formalized the Model._meta API for ↵Daniel Pyrathon2015-01-071-9/+21
| | | | | | | retrieving fields. 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 ↵Anssi Kääriäinen2014-12-231-1/+1
| | | | Field.related.
* 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 ↵areski2014-08-141-1/+4
| | | | | | confirmation pages. 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 ↵Gabe Jackson2014-03-051-1/+1
| | | | | | | | | | | reverse lookups 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 ↵Aaron France2014-02-151-5/+15
| | | | | | | | | | | | | | | | | | handling sub-lists. 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 ↵Christopher Adams2014-02-111-6/+6
| | | | | | | | | a callable. 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 ↵Loic Bistuer2014-01-221-2/+6
| | | | with %(app_label)s or %(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-191-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 ↵Malcolm Tredinnick2007-11-141-1/+2
| | | | | | | | | | | | | | templates. Fully 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 ↵Jacob Kaplan-Moss2006-07-211-1/+0
| | | | | | small errors turned up 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 ↵Luke Plant2006-06-031-2/+6
| | | | | | | | | are bugs 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 ↵Adrian Holovaty2006-05-021-3/+3
| | | | | | highly 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 ↵Adrian Holovaty2005-12-071-4/+6
| | | | | | isn't installed. Thanks, 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, ↵Adrian Holovaty2005-11-271-0/+97
where it belongs. Also caught docutils ImportError in a more controlled way git-svn-id: http://code.djangoproject.com/svn/django/trunk@1463 bcc190cf-cafb-0310-a4f2-bffc1f526a37