| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
Python 3.4.
The order of admin's changelist filters in the querystring relied on
dict ordering.
|
|
|
|
|
|
| |
url prefixes.
Thanks to trac username honyczek for the report. Refs #6903.
|
|
|
|
| |
version of flake8 catches
|
|
|
|
| |
ModelForm Meta overrides.
|
|
|
|
|
|
|
|
| |
read-only fields
When content is supposed to contain HTML, we do not try to add
line breaks in read-only contents.
Thanks Alexander Todorov for the report.
|
|
|
|
| |
Thanks Piotr Kasprzyk for help with the patch.
|
|
|
|
|
|
|
|
|
|
| |
ModelAdmin.get_changeform_initial_data().
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.
|
|
|
|
| |
consistency.
|
|
|
|
|
|
| |
order for admin_order_field.
Thanks Klemens Mantzos for the report and initial patch.
|
|
|
|
|
|
|
|
|
| |
a callable.
ForeignKey or ManyToManyField attribute ``limit_choices_to`` can now
be a callable that returns either a ``Q`` object or a dict.
Thanks michael at actrix.gen.nz for the original suggestion.
|
|
|
|
|
|
| |
blocks.
Thanks Keryn Knight for the report.
|
|
|
|
|
|
| |
Refs #21911. Now that we have a more traditional login form, we
don't need any more a special field telling us we are dealing with
the login form.
|
|
|
|
|
|
|
|
|
|
|
| |
needed
Historically, the Django admin used to pass through the request
from an unauthorized access to the login view directly. Now we
are using a proper redirection, which is also preventing
inadvertantly changing data when POSTing login data to an admin
view when user is already authorized.
Thanks Marc Tamlyn and Tim Graham for the reviews.
|
|
|
|
| |
Refs #21911.
|
|
|
|
|
|
|
| |
It contained models, forms and admin objects causing undesirable
import side effects. Refs #16368.
Thanks to Ramiro, Carl and Loïc for the review.
|
|
|
|
|
|
|
|
|
|
|
| |
framework
This is the result of Christopher Medrela's 2013 Summer of Code project.
Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian
Apolloner, and Alex Gaynor for review notes along the way.
Also: Fixes #8579, fixes #3055, fixes #19844.
|
|
|
|
|
|
|
| |
Surprisingly, this commit doesn't change any behavior at all. When a
model is defined with the same name as another model in the same app,
the definition of the first class is bound to the name of the class
regardless of the definition of the second class.
|
| |
|
| |
|
|
|
|
|
|
|
| |
search bar
Thanks moritz.pfeiffer at alp-phone.ch for the report and
Tim Graham for the initial patch.
|
|
|
|
|
|
|
|
|
|
| |
in 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.
|
|
|
|
| |
a480f8320a5b36501bfd0e8cd70b8dc04adf2d08.
|
|
|
|
| |
Report, analysis and tests from stephenmcd.
|
|
|
|
|
| |
ModelAdmin displayed the "View on site" link even if the Model didn't
define the `get_absolute_url()` method.
|
|
|
|
| |
Signed-off-by: Jason Myers <jason@jasonamyers.com>
|
|
|
|
| |
Signed-off-by: Jason Myers <jason@jasonamyers.com>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
on site" button
``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.
|
| |
|
|
|
|
|
|
|
| |
admin inline formsets.
Previously there was a mixture of the two which resulted in inconsistent
casing.
|
| |
|
| |
|
| |
|
|
|
|
| |
refs #21230.
|
| |
|
| |
|
|
|
|
| |
pyflakes warnings.
|
|
|
|
|
|
| |
widget in admin forms.
Thanks bartTC for the report.
|
|
|
|
| |
Thanks gsf for the suggestion.
|
|
|
|
|
| |
Thanks PaulM for the suggestion and Luke Granger-Brown and
Wiktor Kołodziej for the initial patch.
|
|
|
|
| |
accepts any app-labelish input.
|
|
|
|
| |
if the user has no permissions.
|
|
|
|
|
|
| |
admin base.html is necessary.
refs #21067
|
| |
|
| |
|
|
|
|
| |
considered for the admin history view.
|
|
|
|
| |
55a11683f7b094ae4fd0b9fa030d18a12657ba98.
|
| |
|
|
|
|
|
|
| |
to Selenium.
Refs #1707 and 1c0c879be3.
|