| Age | Commit message (Collapse) | Author |
|
#23754.
Backport of e0d1f2684ae60573b209783f9fd4f9db163ad704 from master
|
|
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
|
|
Backport of 9e3aaa5a46 from master
|
|
Backport of 4a9b4a23bd from master
|
|
formsets.
Backport of 388c6038fd from master
|
|
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
|
|
Thanks Daniele Procida for review.
Backport of a2bcec3491 from master
|
|
partial backport of a9fd740d22 from master
|
|
The 'app' subpackage does not exist, should be 'app'.
Backport of b9daa4f0e1 from master
|
|
Thanks to wkschwartz for the report and to Tim for the patch.
Backport of e5619330e2d3bf901155e98ef3fa7d224b6a260a from master.
|
|
Backport of 06ba4b9eee from master
|
|
the admin.
Thanks Stephen Burrows for work on the patch as well.
|
|
Backport of a06808d370 from master
|
|
methods that InlineModelAdmin supports.
Backport of 986bd41f8a from master
|
|
Errors detected by Topy (https://github.com/intgr/topy), all changes
verified by hand.
Backport of 11d453bcad from master
|
|
Thanks nofinator for the report.
Backport of d5031ecf88 from master
|
|
get_formsets_with_inlines().
|
|
Thanks matt at schinckel.net for the suggestion.
|
|
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.
|
|
templates.
Thanks django at patjack.co.uk for the suggestion.
|
|
|
|
|
|
|
|
admin_order_field.
Thanks Klemens Mantzos for the report and initial patch.
|
|
Thanks Tim Graham for the report and recommendations
|
|
It contained models, forms and admin objects causing undesirable
import side effects. Refs #16368.
Thanks to Ramiro, Carl and Loïc for the review.
|
|
Thanks Russell for the report, Marc for the initial patch, Carl for the
final review, and everyone who contributed to the design discussion.
|
|
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.
|
|
|
|
Thanks Marc Tamlyn for the initial version of the patch.
|
|
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.
|
|
* 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.
|
|
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.
|
|
|
|
Thanks glarrain for the report.
|
|
|
|
``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.
|
|
list links.
Thanks rm_ for the suggestion.
|
|
Thanks stanislas.guerra at gmail.com for the report.
|
|
Thanks stavros for the suggestion.
|
|
Added links to code references in the docs for `response_add`,
`response_change` and `response_delete`.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
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.
|
|
Refs #18681.
This also starts the deprecation of ModelAdmin.declared_fieldsets
|
|
|