| Age | Commit message (Collapse) | Author |
|
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
|
|
|
|
Thanks CollinAnderson for the report.
|
|
|
|
any choices set by formfield_for_choice_field are still subject
to model validation of the model field's choices attribute
|
|
|
|
Thanks johnsmith for the suggestion.
|
|
Thanks Marc Tamlyn and Tim Graham for the review.
|
|
uid is now base64 encoded in password reset URLs/views. A backwards compatible
password_reset_confirm view/URL will allow password reset links generated before
this change to continue to work. This view will be removed in Django 1.7.
Thanks jonash for the initial patch and claudep for the review.
|