summaryrefslogtreecommitdiff
path: root/django/contrib/admin
AgeCommit message (Collapse)Author
2015-05-28Fixed #24851 -- Fixed crash with reverse one-to-one relation in ↵Tim Graham
ModelAdmin.list_display Forwardport of 2456276b0250c9f21d580ca6c3f3c86345ad6370 from stable/1.8.x
2015-05-19Fixed #24784 -- Fixed visibility regression in admin's FK widget.Tim Graham
2015-05-13Removed unnecessary arguments in .get method callsPiotr Jakimiak
2015-05-11Fixed #24553 -- Added the list of available applications to ↵Riccardo Magliocchetti
AdminSite.each_context()
2015-05-07Used LogEntry methods to check LogEntry action_flag in __str__Piotr Jakimiak
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-05-02Fixed #23387 -- Kept "Save as new" button after validation errors in admin.Adam Zapletal
When "Save as new" is chosen and errors occur, only show the "Save as new" button and not the other save buttons. Thanks to Tino de Bruijn for doing the real work on this fix.
2015-05-01Fixed #24676 -- Fixed help text positioning in ``contrib.admin`` filter_* ↵Tim Graham
widgets.
2015-04-30Updated translations from TransifexClaude Paroz
Updates for languages: Indonesian, Belarusian, Persian, and Dutch. Forward port of cb370f8510 from stable/1.8.x
2015-04-18Removed cases of six.iter* wrapped in a list()Curtis Maloney
There's absolutely no advantage [and a mild performance hit] to using six.iter* in these cases.
2015-04-15Removed code duplication between AdminSite.index() and app_index().Riccardo Magliocchetti
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-04-01Fetched updated contrib translations from TransifexClaude Paroz
Forward port of 5483c66f85 from stable/1.8.x
2015-03-30Fixed #24466 -- Added JavaScript escaping in a couple places in the admin.Tim Graham
Thanks Aymeric Augustin and Florian Apolloner for work on the patch.
2015-03-27Fixed #18773 -- Added logging for template variable resolvingCaroline Simpson
Added a django.template logger without a default handler. Added logging if there is an exception while resolving variables in a template.
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-24Fixed #24405 -- Made admin related object JavaScript overridableRiccardo Magliocchetti
Consolidated it in one file and move the DOM related stuff to the template so it is easily overridable. To override the popup behavior you need to add handlers for the custom events triggered in the admin_change_form_document_ready template block.
2015-03-23Removed redundant model instantiation in contrib.admin; refs #11390.TomV
2015-03-20Fixed #24490 -- Set LogEntry.change_message when adding an object.Karl Hobley
2015-03-20Fixed #24285 -- Made for_user argument optional for {% get_admin_log %} tagYair Chuchem
2015-03-19Fixed #24417 -- Added ModelAdmin.get_list_select_related()Loek van Gent
2015-03-12Fixed #24226 -- Changed admin EMPTY_CHANGELIST_VALUE from (None) to -Tim Graham
2015-03-11Fixed #24467 -- Removed conditional inclusion of actions.js & prepopulate.js.Anton Danilchenko
The JavaScript may be required when using ModelAdmin.get_actions() or get_prepopulated_fields(). Always including them is the easiest solution.
2015-03-07Fixed #23993 -- Added form.media to the admin login template.david
2015-03-05Fixed #19538 -- Removed window.__admin_media_prefix__ from admin templates.Tim Graham
2015-03-04Fixed #24426 -- Displayed admin actions panel when show_full_result_count=False.Tim Graham
2015-03-04Used format_html() in contrib.admin.utils for consistency.Tim Graham
2015-03-03Removed outdated docstring for get_admin_url().Mathias André
Since a4b8a4b632dbb6d9fed1a8654aed99a9c53560d4 the admin URL returned by get_admin_url() is no longer relative to the Django admin index page.
2015-03-02Fixed #24294 -- Allowed staff_member_required decorator to handle args.Andrei Kulakov
2015-02-26Fixed #24406 -- Improved SelectFilter js to use click eventsRolf Jagerman
The SelectFilter widget used href to execute javascript. This was problematic if one wishes to customize the widget, since the href javascript is executed after events are handled. This change modifies the javascript to use click events to handle button behavior.
2015-02-25Fixed #24411 -- Avoided dict key/method clash in admin delete views.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 #15779 -- Allowed 'add' primary key in admin editionClaude Paroz
Thanks Marwan Alsabbagh for the report, and Simon Charette and Tim Graham for the reviews.
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-12Fixed #24333 -- Fixed admin history view crash with non-integer slug.Tim Graham
2015-02-11Refs #14497 -- Handled empty readonly admin FileFieldsCollin Anderson
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-05Caught all exceptions raised by Engine.get_default().Aymeric Augustin
In addition to ImproperlyConfigured, Engine.get_default() may also raise ImportError or other exceptions. It's better to catch all exceptions in places where the default engine isn't strictly required.
2015-02-04Fixed #14497 -- Improved admin widget for "read only" FileFieldsRiccardo Magliocchetti
Based on patch by Adam J Forster, Paul Collins, and Julien.
2015-02-01Removed InlineAdminForm.field_count()Tim Graham
This method is unused since 337d102b8612503bb9dc712bfbf07432a9a96302
2015-01-27Fixed #24053 -- Removed admin CSS & images for IE6 & 7.seanwestfall
2015-01-18Removed support for admin validators per deprecation timeline; refs #16905.Tim Graham
2015-01-17Removed ModelAdmin.get_formsets() per deprecation timeline; refs #20702.Tim Graham
2015-01-17Fixed #24055 -- Keep reference to view class for resolve()Collin Anderson
2015-01-17Removed ModelAdmin.declared_fieldsets per deprecation timeline; refs #18681.Tim Graham
2015-01-17Removed backwards compatibility shims for "util" modules per deprecation ↵Tim Graham
timeline. refs #17627.
2015-01-17Updated en translation catalogsClaude Paroz
Forward port of 666c12e52 from stable/1.8.x
2015-01-16Fixed #24099 -- Removed contenttype.name deprecated fieldClaude Paroz
This finsishes the work started on #16803. Thanks Simon Charette, Tim Graham and Collin Anderson for the reviews.