summaryrefslogtreecommitdiff
path: root/django/contrib/admin/helpers.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Refs #23444 -- Removed InlineAdminForm.original_content_type_id per ↵Tim Graham2015-09-231-19/+1
| | | | deprecation timeline.
* Fixed #25135 -- Deprecated the contrib.admin allow_tags attribute.Ola Sitarska2015-09-081-5/+16
| | | | Thanks Jaap Roes for the idea and initial patch.
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-3/+3
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Moved jQuery to a vendor/jquery subdirectory.Trey Hunner2015-06-071-1/+1
|
* Fixed #24474 -- Allowed configuring the admin's empty change list value.Loek van Gent2015-06-041-3/+3
|
* Removed cases of six.iter* wrapped in a list()Curtis Maloney2015-04-181-2/+2
| | | | | There's absolutely no advantage [and a mild performance hit] to using six.iter* in these cases.
* Revert "Fixed #24474 -- Allowed configuring the admin's empty change list ↵Tim Graham2015-04-081-4/+3
| | | | | | | | 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-3/+4
|
* Fixed #18773 -- Added logging for template variable resolvingCaroline Simpson2015-03-271-0/+1
| | | | | | Added a django.template logger without a default handler. Added logging if there is an exception while resolving variables in a template.
* Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen2015-03-251-1/+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.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-5/+6
|
* Removed InlineAdminForm.field_count()Tim Graham2015-02-011-12/+0
| | | | This method is unused since 337d102b8612503bb9dc712bfbf07432a9a96302
* 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 #23444 -- Deprecated ↵a1tus2014-10-231-5/+19
| | | | django.contrib.admin.helpers.InlineAdminForm.original_content_type_id
* Limited lines to 119 characters in django/Tim Graham2014-09-051-1/+4
| | | | refs #23395.
* Fixed #22087 -- Made AdminReadonlyField respect ModelForm Meta overrides.Ben Davis2014-03-251-2/+12
|
* Fixed #22241 -- Selectively added line breaks in admin read-only fieldsClaude Paroz2014-03-221-1/+3
| | | | | | When content is supposed to contain HTML, we do not try to add line breaks in read-only contents. Thanks Alexander Todorov for the report.
* Avoided importing models from django.contrib.admin.Aymeric Augustin2014-02-011-1/+3
| | | | Fixed #21923. Refs #21719.
* Fixed #17413 -- Serialization of form errors along with all metadata.Loic Bistuer2013-12-161-0/+2
|
* Fixed E124 pep8 warnings.Loic Bistuer2013-12-101-1/+2
|
* Removed unneeded string normalization in contrib.adminClaude Paroz2013-12-071-24/+1
| | | | | With Python 2.7 and up, named parameter keys are not limited to bytestrings any longer. This mainly reverts 3bd384aa626.
* Fixed all E261 warningscoagulant2013-11-021-3/+3
|
* Started attackign the next flake8 violationAlex Gaynor2013-10-311-0/+12
|
* Fixed #8261 -- ModelAdmin hook for customising the "show on site" buttonUnai Zalakain2013-10-291-3/+5
| | | | | | | | | ``ModelAdmin.view_on_site`` defines wether to show a link to the object on the admin detail page. If ``True``, cleverness (i.e. ``Model.get_absolute_url``) is used to get the url. If it's a callable, the callable is called with the object as the only parameter. If ``False``, not link is displayed. With the aim of maitaining backwards compatibility, ``True`` is the default.
* Fixed #11277 -- Hid labels of fields with HiddenInput widget in admin forms.Christopher Medrela2013-10-041-0/+3
| | | | Thanks bartTC for the report.
* Fixed #17627 -- Renamed util.py files to utils.pyTim Graham2013-09-161-3/+3
| | | | | Thanks PaulM for the suggestion and Luke Granger-Brown and Wiktor Kołodziej for the initial patch.
* Fixed #17074 -- Improved first field detection in admin add formClaude Paroz2013-08-311-14/+0
| | | | | Thanks Kidwind for the report and Julien Phalip for the initial patch.
* Fixed #20989 -- Removed useless explicit list comprehensions.Simon Charette2013-08-301-1/+1
|
* Fixed #20805 -- Removed an extra colon beside checkboxes in the admin.Tim Graham2013-07-261-3/+5
| | | | Thanks CollinAnderson for the report.
* Fixed #13696 -- ensured inline pk field is renderedKaren Tracey2013-07-211-3/+5
|
* Replaced `and...or...` constructs with PEP 308 conditional expressions.Ramiro Morales2013-05-261-2/+2
|
* Fixed #19609: admin Inlines doesn't display help_text for readonly fieldsWiktor Kolodziej2013-02-231-6/+7
| | | | | | Refactoring: field was renamed to field_name, since flatten_fieldsets returns field name, not field. Original patch from Marc Aymerich Gubern
* Fixed #17911 -- Ensure that admin readonly fields' display values are shown ↵Edward Tjörnhammar2012-11-251-3/+1
| | | | in change forms when the raw value is None.
* [py3] Fixed 'iterable but non string' detectionClaude Paroz2012-08-081-1/+1
| | | | | | In Python 3, the str type has an __iter__ attribute. Therefore, the presence of an __iter__ attribute is not sufficient to distinguish 'standard' iterables (list, tuple) from strings.
* [py3] Ported django.utils.encoding.Aymeric Augustin2012-08-071-4/+4
| | | | | | | | | | | * Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
* [py3] Fixed access to dict keys/values/items.Aymeric Augustin2012-08-071-2/+2
|
* [py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin2012-07-221-1/+1
|
* [py3] Replaced basestring by six.string_types.Aymeric Augustin2012-07-221-1/+2
|
* Changed a lot of internal code to use 'format_html' where appropriate/possibleLuke Plant2012-07-031-6/+4
|
* Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz2012-06-071-8/+10
| | | | | Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
* Replaced foo.next() by next(foo).Claude Paroz2012-05-101-1/+1
| | | | | This new syntax for next() has been introduced in Python 2.6 and is compatible with Python 3.
* Improved on r17454 to ensure that `collapse.js` only gets minified when ↵Julien Phalip2012-02-051-1/+5
| | | | | | `DEBUG` is `False`. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #17596 -- Stopped the AdminField class from double quoting its label. ↵Jannis Leidel2012-02-041-3/+3
| | | | | | Thanks, guettli and claudep. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17431 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15252 -- Added static template tag and CachedStaticFilesStorage to ↵Jannis Leidel2011-08-111-1/+2
| | | | | | | | staticfiles contrib app. Many thanks to Florian Apolloner and Jacob Kaplan-Moss for reviewing and eagle eyeing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16594 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16050 -- BACKWARDS-INCOMPATIBLE CHANGE: Moved static files of the ↵Jannis Leidel2011-06-301-3/+2
| | | | | | | | | | admin to conventional file system location. This also removes the need for ADMIN_MEDIA_PREFIX and replaces it with the convention to find admin's static files at STATIC_URL + 'admin/'. Thanks to Jacob for the review and general help. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #11639, #13618 -- Added get_prepopulated_fields method to ModelAdmin ↵Jannis Leidel2011-04-221-4/+8
| | | | | | and InlineModelAdmin to be able to handle prepopulated fields on a case-by-case basis. Thanks, leanmeandonothingmachine. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16069 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15512 -- Cleanup of imports in contrib.admin. Thanks to Julien Phalip ↵Russell Keith-Magee2011-03-031-2/+2
| | | | | | for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15719 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15424 -- Corrected lookup of callables listed in admin inlines' ↵Ramiro Morales2011-02-261-4/+4
| | | | | | `readonly_fields` by passing the right ModelAdmin (sub)class instance when instantiating inline forms admin wrappers. Also, added early validation of its elements. Thanks kmike for the report and Karen for the patch fixing the issue. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15650 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14355 -- Ensure that help_text is displayed for readonly fields in ↵Russell Keith-Magee2011-02-191-1/+2
| | | | | | the admin. Thanks to jester for the report, and to alexbmeng, subsume, wamberg and Julien Phalip for ther work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15582 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #13782 -- Added CSS for errors in textareas and multiple fields in one ↵Jannis Leidel2010-12-211-0/+3
| | | | | | line. Thanks, julien. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14999 bcc190cf-cafb-0310-a4f2-bffc1f526a37