summaryrefslogtreecommitdiff
path: root/django/contrib/admin/utils.py
AgeCommit message (Collapse)Author
2018-10-02Simplified contrib.admin.utils.unquote().Sergey Fedoseev
2018-10-01Simplified contrib.admin.utils.quote().Sergey Fedoseev
2018-08-20Fixed #29682 -- Fixed admin change form crash if a view-only model's form ↵Tim Graham
has an extra field.
2018-06-15Fixed #23869 -- Made ModelAdmin.get_deleted_objects() use ↵Henk Kahlfuß
has_delete_permission() for permissions checking.
2018-03-20Refs #29227 -- Simplified NullBooleanField by making it subclass BooleanField.Nick Pope
2018-03-20Fixed #29227 -- Allowed BooleanField to be null=True.Tim Graham
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
2018-02-24Removed using argument from admin's get_deleted_objects().Tim Graham
2018-02-21Removed unused opts argument from admin's get_deleted_objects().Tim Graham
Unused since e12b3199d0c01694ca6b09add5e0f27cadffc8ad.
2018-01-12Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵Дилян Палаузов
continue statements.
2018-01-04Fixed #28517 -- Fixed admin delete confirmation view crash when related ↵Paulo
models don't have a delete permission.
2018-01-03Fixed #28986 -- Prevented boolean values in admin list display from being ↵Jonas Haag
formatted with thousand separators.
2018-01-03Fixed #28985 -- Removed unneeded None checks before hasattr().Дилян Палаузов
2017-11-18Fixed #26184 -- Allowed using any lookups in ModelAdmin.search_fields.Krzysztof Nazarewski
Thanks Krzysztof Nazarewski for the initial patch.
2017-10-31Refs #23919 -- Updated references to urllib.quote() to Python 3 location.Ville Skyttä
2017-09-13Merged isinstance() calls.Mariusz Felisiak
2017-06-05Replaced Model._get_pk_val() with pk property.Tim Graham
Model.pk was added after _get_pk_val() and many places weren't simplified.
2017-04-27Refs #27795 -- Replaced many force_text() with str()Claude Paroz
Thanks Tim Graham for the review.
2017-03-15Fixed #27897 -- Fixed crash with 'pk' in ModelAdmin.search_filters.Josh Schneier
2017-03-04Refs #27795 -- Removed unneeded force_text callsClaude Paroz
Thanks Tim Graham for the review.
2017-02-07Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz
Thanks Tim Graham for the review.
2017-02-04Refs #27656 -- Updated django.contrib docstring verb style according to PEP 257.Anton Samarchyan
2017-01-26Refs #23919, #27778 -- Removed obsolete mentions of unicode.Vytis Banaitis
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-20Refs #23919 -- Removed unneeded force_str callsClaude Paroz
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-10-11Replaced '__' with LOOKUP_SEP constant.Nick Pope
2016-10-10Removed unused contrib.admin.utils.remove_trailing_data_field().Tim Graham
Unused since 8f30556329b64005d63b66859a74752a0b261315.
2016-10-05Fixed #27273 -- Added a construct_change_message() admin utility function.Tim Graham
2016-09-12Fixed #26524 -- Fixed crash in admin change view when displaying many to ↵Jon Dufresne
many forward refs. Thanks Tim Graham for the regression test.
2016-09-03Replaced smart_* by force_* calls whenever possibleClaude Paroz
The smart_* version should only be used when a lazy string should keep its lazy status.
2016-06-08Fixing #26524 -- Made a foreign key id reference in ModelAdmin.list_display ↵krishbharadwaj
display the id.
2016-05-07Fixed #26582 -- Added prettier admin display for list values.Dan Watson
2016-01-21Fixed #26060 -- Fixed crash with reverse OneToOneField in ↵Alexander Gaevsky
ModelAdmin.readonly_fields.
2015-12-31Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek
Thanks to Tim Graham for the review.
2015-12-10Fixed #25883 -- Fixed admin deletion page summary counts for related objects.Sergey Fedoseev
2015-09-16Refs #25294 -- Moved BoundField to django.forms.boundfield.Moritz Sichert
2015-08-31Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant
2015-08-28Fixed #25299 -- Fixed crash with ModelAdmin.list_display value that clashes ↵Tim Graham
with a model reverse accessor.
2015-06-18Fixed #24962 -- Added newline to characters escaped by ↵Tim Graham
contrib.admin.utils.quote() Thanks alito for the report and patch.
2015-06-04Fixed #24474 -- Allowed configuring the admin's empty change list value.Loek van Gent
2015-05-06Fixed #16609 -- Fixed duplicate admin results when searching nested M2M ↵Samuel Paccoud
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.
2015-04-14Fixed #24593 -- Fixed number formatting of readonly IntegerFields in the admin.Eric Rouleau
2015-04-08Revert "Fixed #24474 -- Allowed configuring the admin's empty change list ↵Tim Graham
value." This reverts commit 72f769f494822981db6df9524b92a2d86f8e69fe. There are several test failures that need to be fixed.
2015-04-08Fixed #24474 -- Allowed configuring the admin's empty change list value.Loek van Gent
2015-03-25Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen
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.
2015-03-04Used format_html() in contrib.admin.utils for consistency.Tim Graham
2015-02-23Fixed #24381 -- removed ForeignObjectRel opts and to_optsAnssi Kääriäinen
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.
2015-02-14Fixed #24289 -- Reversed usage of Field.many_to_one and one_to_many.Loic Bistuer
Thanks Carl Meyer and Tim Graham for the reviews and to all involved in the discussion.
2015-02-11Refs #14497 -- Handled empty readonly admin FileFieldsCollin Anderson