| Age | Commit message (Collapse) | Author |
|
the admin.
Thanks to Trac alias Markush2010 and ross for the detailed reports.
Backport of 3cbb7590cb from master
|
|
This is a security fix. Disclosure following shortly.
|
|
The reason for the regression was that the GenericForeignKey field isn't
something meta.get_field_by_name() should return. The reason is that a
couple of places in Django expects get_field_by_name() to work this way.
It could make sense to return GFKs from get_field_by_name(), but that
should likely be done as part of meta refactoring or virtual fields
refactoring patches.
Thanks to glicerinu@gmail.com for the report and to Tim for working on
the issue.
|
|
Thanks generalov for the report.
Backport of 22b2fb0b from master
|
|
test_i18n_language_non_english_fallback fails if run after
test_L10N_deactivated; the tests can be run in any order after
a5f6cbce07b5f3ab48d931e3fd1883c757fb9b45 but this commit is not
in stable/1.7.x.
|
|
Thanks brylie.
Backport of 89b9e6e5d6 from master
|
|
Thanks Rahul Priyadarshi.
Backport of 99f5ea9cc8 from master
|
|
Backport of fea8ccdcc4 from master
|
|
This is achieved by inserting a fake entry in connection.queries when
not releasing a savepoint (since Oracle doesn't support that operation.)
Also removed the can_release_savepoints feature that was recently added,
but is superseded by this solution.
Backport of 40bfd856 from master.
|
|
Backport of 1dcc603eff from master
|
|
(django.contrib.admin)
Backport of ebd70d4d00c252d5122c13906da5bddc8de0bce5 from master.
|
|
Backport of e520a73ee from master.
|
|
Backport of c70a61eb from master
|
|
Backport of 2bcb8bfc8d from master
|
|
failure on Oracle.
Backport of d238c58912 from master
|
|
flake8 catches
Backport of 778ce245dd466bce1b19f89e52cf9ed8f1b46513 from master
|
|
Backport of 7a7f6fccae from master
|
|
The order of admin's changelist filters in the querystring relied on
dict ordering.
Backport of 4d996b8e69 from master
|
|
Thanks to trac username honyczek for the report. Refs #6903.
Backport of 4339e9a92d from master
|
|
overrides.
Backport of 16afffffe8 from master
|
|
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.
Backport of c94bff2 from master.
|
|
Thanks Piotr Kasprzyk for help with the patch.
|
|
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.
|
|
|
|
admin_order_field.
Thanks Klemens Mantzos for the report and initial patch.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
|
|
|
|
Thanks moritz.pfeiffer at alp-phone.ch for the report and
Tim Graham for the initial patch.
|
|
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>
|
|
|
|
|
|
``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.
|
|
|
|
Previously there was a mixture of the two which resulted in inconsistent
casing.
|
|
|
|
|
|
|