summaryrefslogtreecommitdiff
path: root/docs/ref/contrib/admin
AgeCommit message (Collapse)Author
2014-11-25[1.7.x] Added warning about get_inline_instances() permission checking; refs ↵Simon Charette
#23754. Backport of e0d1f2684ae60573b209783f9fd4f9db163ad704 from master
2014-11-16[1.7.x] Fixes a race condition in the documentation.Peter Sagerson
The example for django.contrib.admin.ModelAdmin.get_form modifies self.exclude. However, since ModelAdmin instances are global and have no thread- or request-locality, this is not safe for concurrent requests.[1] This updated documentation demonstrates a safe method to override admin forms on a per-request basis. [1] https://groups.google.com/forum/#!topic/django-users/AmoUDtEefyA Backport of 0d1a9d203a970a82a2f81edf0ba7d4b55442fd78 from master
2014-10-30[1.7.x] Explained why admindocs omits model methods with arguments.Zan Anderle
Backport of 9e3aaa5a46 from master
2014-10-30[1.7.x] Fixed #23575 -- Added a code example for custom AdminSite.Berker Peksag
Backport of 4a9b4a23bd from master
2014-10-29[1.7.x] Added cross reference in admin docs to topic about saving objects in ↵P.A. SCHEMBRI
formsets. Backport of 388c6038fd from master
2014-10-06[1.7.x] Updated links in admin docs to use :ref:Kostochko Dmitriy
per Sphinx docs: "Using ref is advised over standard reStructuredText links to sections because it works across files, when section headings are changed, and for all builders that support cross-references. Backport of 13409b932a from master
2014-08-26[1.7.x] Fixed #17707, #20734 -- Added examples to URL namespacing docs.Tim Graham
Thanks Daniele Procida for review. Backport of a2bcec3491 from master
2014-08-12[1.7.x] Refs #23276: Removed bad examples of passing views as strings to url()Collin Anderson
partial backport of a9fd740d22 from master
2014-07-29[1.7.x] Fixed a typo in the admin documentation.David Arcos
The 'app' subpackage does not exist, should be 'app'. Backport of b9daa4f0e1 from master
2014-07-29[1.7.x] Fixed #23123 -- Don't use a bare except in ModelAdmin documentationBaptiste Mispelon
Thanks to wkschwartz for the report and to Tim for the patch. Backport of e5619330e2d3bf901155e98ef3fa7d224b6a260a from master.
2014-07-22[1.7.x] Fixed typo in docs/ref/contrib/admin/index.txt.africa itcase
Backport of 06ba4b9eee from master
2014-05-15[1.7.x] Fixed #17642 -- Added min_num support to modelformsets, inlines, and ↵Anders Steinlein
the admin. Thanks Stephen Burrows for work on the patch as well.
2014-05-13[1.7.x] Removed an unnecessary anchor in the docs.Tim Graham
Backport of a06808d370 from master
2014-05-12[1.7.x] Fixed #22613 -- Added formfield_for_choice_field() to the list of ↵Tim Graham
methods that InlineModelAdmin supports. Backport of 986bd41f8a from master
2014-04-22[1.7.x] Various documentation typo/spelling fixesMarti Raudsepp
Errors detected by Topy (https://github.com/intgr/topy), all changes verified by hand. Backport of 11d453bcad from master
2014-04-10[1.7.x] Fixed #21353 -- Noted that description is ignored for TabularInlines.Tim Graham
Thanks nofinator for the report. Backport of d5031ecf88 from master
2014-03-19Replaced reference to ModelAdmin.get_formsets() (deprecated) with ↵Daniel Hahler
get_formsets_with_inlines().
2014-03-03Fixed #21908 -- Added example usage for ModelAdmin.get_inline_instances().Tim Graham
Thanks matt at schinckel.net for the suggestion.
2014-03-03Fixed #22135 -- Added ModelAdmin.get_changeform_initial_data().Greg Chapple
Allows custom behavior for setting initial form data in ModelAdmin. By default, initial data is set via GET params. The new method allows this behavior to be overridden. Thanks egasimus for the suggestion.
2014-02-28Fixed #21948 -- Noted TEMPLATE_LOADERS requirement when overriding admin ↵Alex de Landgraaf
templates. Thanks django at patjack.co.uk for the suggestion.
2014-02-28Fixed doc typos.Tim Graham
2014-02-25Fixed docs typos.Szczepan Cieślik
2014-02-22Fixed #21902 -- Documented search order for list_display.Marcin Sokół
2014-02-14Fixed #21924 -- Added the ability to specify a reverse order for ↵Klemens Mantzos
admin_order_field. Thanks Klemens Mantzos for the report and initial patch.
2014-02-13Fixed #21951 -- Updated docs to use __str__ for Python 3Alasdair Nicol
Thanks Tim Graham for the report and recommendations
2014-01-26Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette
It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
2014-01-25Fixed #21829 -- Added default AppConfigs.Aymeric Augustin
Thanks Russell for the report, Marc for the initial patch, Carl for the final review, and everyone who contributed to the design discussion.
2014-01-22Don't show `self` in the list of arguments of a method.Baptiste Mispelon
This is consistent with Python's official documentation and it's a sphinx recommendation too[1]. [1] http://sphinx-doc.org/markup/desc.html#dir-method Refs #21855.
2014-01-19Fixed some admin sphinx definitions so links work properly.Tim Graham
2014-01-18Fixed #21712 -- Moved autodiscover() to AdminConfig.ready().Aymeric Augustin
Thanks Marc Tamlyn for the initial version of the patch.
2013-12-28Used app_label instead of appname.Aymeric Augustin
The last component of the dotted path to the application module is consistently referenced as the application "label". For instance it's AppConfig.label. appname could be confused with AppConfig.name, which is the full dotted path.
2013-12-18Fixed #21386 -- Removed admindocs dependence on sites frameworkBouke Haarsma
* Removed ADMIN_FOR setting and warn warning * Group view functions by namespace instead of site * Added a test verifying namespaces are listed Thanks to Claude Paroz for reviewing and ideas for improvement.
2013-11-25Fixed #20522 - Allowed use of partially validated object in ↵Jay Leadbetter
ModelAdmin.add_view formset validation. Updated ModelAdmin to use form.instance when passing parent model to child inlines for add_view. There is effectively no change in the change_view since the previously passed 'obj' is the same as form.instance. Thanks to meshy for report, and EvilDMP and timo for review.
2013-11-24Fixed typo in previous commit; refs #21490.Tim Graham
2013-11-24Fixed #21490 -- Fixed custom admin URL reverse example.Tim Graham
Thanks glarrain for the report.
2013-11-09Fixed versionadded misuse in the admin documentation.Baptiste Mispelon
2013-10-29Fixed #8261 -- ModelAdmin hook for customising the "show on site" buttonUnai Zalakain
``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.
2013-10-01Fixed #15185 -- Allowed ModelAdmin.list_display_links=None to disable change ↵Ramiro Morales
list links. Thanks rm_ for the suggestion.
2013-09-20Fixed #20702 -- Deprecated get_formsets in favor of get_formsets_with_inlines.tschilling
Thanks stanislas.guerra at gmail.com for the report.
2013-09-18Fixed #19414 -- Added admin registration decoratorBrian Holdefehr
Thanks stavros for the suggestion.
2013-09-07Improved docs for `contrib.admin.options.ModelAdmin.response_*`Pablo Mouzo
Added links to code references in the docs for `response_add`, `response_change` and `response_delete`.
2013-09-07Add docs for `response_add`, `response_change` and `response_delete`Pablo Mouzo
2013-09-06Fixed some sphinx errors and added some links.Tim Graham
2013-09-06Fixed versionadded and ordering of note in admin/index.txtAdrian Holovaty
2013-09-06Added AdminSite attributes for easily changing admin title.Adrian Holovaty
AdminSite now has overridable site_header, site_title and index_title attributes. Changed each admin view to pass these to the context (in a new AdminSite.each_context() method). The intent here is to make it easier to override these things in the common case, instead of having to override a template, which is a bigger burden.
2013-08-19Removed versionadded/changed annotations for 1.5Tim Graham
2013-08-15Fixed some ReST errors regarding backticksTim Graham
2013-08-06Fixed #20852 - Fixed incorrectly generated left quotes in docs.Dominic Rodger
Sphinx generates left single quotes for apostrophes after code markup, when right single quotes are required. The easiest way to fix this is just by inserting the unicode character for a right single quote. Instances of the problem were found by looking for ">‘" in the generated HTML.
2013-08-04Introduced ModelAdmin.get_fields() and refactored get_fieldsets() to use it.Loic Bistuer
Refs #18681. This also starts the deprecation of ModelAdmin.declared_fieldsets
2013-08-03Added ModelAdmin.get_search_fields.Loic Bistuer