| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
admin to field validation
Thanks to Jonathan Liuti for the report and Tim Graham for the review.
|
|
|
|
| |
related_query_name to the admin's delete confirmation page.
|
|
|
|
| |
on_delete for ForeignKey/OneToOneField
|
| |
|
|
|
|
|
|
| |
SlugField.
Thanks Flavio Curella and Berker Peksag for the initial patch.
|
|
|
|
|
|
|
|
|
| |
validation errors in admin.
When "Save as new" is chosen and errors occur, only show the "Save as new"
button and not the other save buttons.
Thanks to Tino de Bruijn for doing the real work on this fix.
|
|
|
|
|
|
| |
ModelAdmin.readonly_fields
This issue was fixed by refs #24464.
|
|
|
|
|
|
|
| |
Dropped the DJANGO_TEST_TEMP_DIR environment variable.
Before this change, proper removal depended on the developer passing
dir=os.environ['DJANGO_TEST_TMP_DIR'] to tempfile functions.
|
| |
|
|
|
|
|
|
|
| |
foreign key widgets.
Thanks to Collin Anderson for the review and suggestions and Tim for the
final review.
|
|
|
|
| |
parameter.
|
|
|
|
|
|
| |
to_field are allowed in the admin.
refs #23754, #23862
|
|
|
|
|
|
|
|
|
|
|
| |
key in the admin
This change allows dynamically created inlines "Add related" button to work
correcly as long as their associated foreign key is pointing to the primary
key of the related model.
Thanks to amorce for the report, Julien Phalip for the initial patch,
and Collin Anderson for the review.
|
|
|
|
| |
MySQL specific warning.
|
|
|
|
|
|
| |
references in the admin.
Thanks Simon Charette for review.
|
|
|
|
|
|
|
|
|
|
| |
admin fields.
This fixes a regression introduced by the 53ff096982 security fix.
Thanks to @a1tus for the report and Tim for the review.
refs #23329.
|
|
|
|
|
|
| |
referenced in the admin.
Thanks to Trac alias Markush2010 and ross for the detailed reports.
|
|
|
|
| |
ModelForm Meta overrides.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
It contained models, forms and admin objects causing undesirable
import side effects. Refs #16368.
Thanks to Ramiro, Carl and Loïc for the review.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
widget in admin forms.
Thanks bartTC for the report.
|
|
|
|
| |
considered for the admin history view.
|
|
|
|
|
|
| |
interaction that caused an admin crash.
Thanks chris at cogdon.org for the report and admackin for the patch.
|
|
|
|
|
|
|
|
|
|
|
| |
get_deleted_objects
The default delete action resulted in a NoReverseMatch if it were to
list any Model with a ModelAdmin with `get_urls` overridden to remove
the change url. Catching the error and not displaying the link in that
case, as was already done for models with no registered admins.
Thanks Keryn Knight for the report.
|
|
|
|
|
|
|
| |
BooleanField does not have a default value
Thanks to Collin Anderson for the suggestion and Tim Graham for
reviewing the patch.
|
|
|
|
|
| |
existing objects.
Thanks to msaelices and d1ffuz0r for the initial patch and tests.
|
|
|
|
| |
Thanks jimmylam@ for the suggestion.
|
|
|
|
|
|
| |
__isnull
Thanks Benjie Chen.
|
|
|
|
|
|
|
|
|
| |
search methods.
This adds a get_search_results method that users can override to
provide custom search strategies.
Thanks to Daniele Procida for help with the docs.
|
| |
|
|
|