summaryrefslogtreecommitdiff
path: root/tests/admin_views/models.py
AgeCommit message (Collapse)Author
2014-08-27[1.7.x] Fixed #23329 -- Allowed inherited and m2m fields to be referenced in ↵Simon Charette
the admin. Thanks to Trac alias Markush2010 and ross for the detailed reports. Backport of 3cbb7590cb from master
2014-03-25[1.7.x] Fixed #22087 -- Made AdminReadonlyField respect ModelForm Meta ↵Ben Davis
overrides. Backport of 16afffffe8 from master
2014-02-14Fixed #21924 -- Added the ability to specify a reverse order for ↵Klemens Mantzos
admin_order_field. Thanks Klemens Mantzos for the report and initial patch.
2014-02-11Fixed #2445 -- Allowed limit_choices_to attribute to be a callable.Christopher Adams
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.
2014-01-26Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette
It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
2013-11-25Fixed #20522 - Allowed use of partially validated object in ↵Jay Leadbetter
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.
2013-11-21Refs #8261 -- Fixed regression introduced by fd219fa.Loic Bistuer
ModelAdmin displayed the "View on site" link even if the Model didn't define the `get_absolute_url()` method.
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02Fixed all E261 warningscoagulant
2013-10-29Fixed #8261 -- ModelAdmin hook for customising the "show on site" buttonUnai Zalakain
``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.
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-10-21Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol
2013-10-04Fixed #11277 -- Hid labels of fields with HiddenInput widget in admin forms.Christopher Medrela
Thanks bartTC for the report.
2013-09-07Fixed #21013 -- Ensure that ModelAdmin.get_queryset is considered for the ↵Juan Catalano
admin history view.
2013-08-29Fixed #16433 -- Fixed a help_text/read only field interaction that caused an ↵Tim Graham
admin crash. Thanks chris at cogdon.org for the report and admackin for the patch.
2013-08-19Fixed #20640 -- Avoided NoReverseMatch in get_deleted_objectsRainer Koirikivi
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.
2013-08-15Fixed #20895 -- Made check management command warn if a BooleanField does ↵Alasdair Nicol
not have a default value Thanks to Collin Anderson for the suggestion and Tim Graham for reviewing the patch.
2013-07-30Fixed #19082 -- Enabled admin field pre-population for existing objects.Julien Phalip
Thanks to msaelices and d1ffuz0r for the initial patch and tests.
2013-06-25Fixed #19773 - Added admin/popup_response.html template.Javier Mansilla
Thanks jimmylam@ for the suggestion.
2013-05-27Fixed #20182 - admin lookup should treat 0 as False for __isnullTim Graham
Thanks Benjie Chen.
2013-05-19Fixed #15961 -- Modified ModelAdmin to allow for custom search methods.Bozidar Benko
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.
2013-03-24Fixed test failures introduced in e16c48e001.Aymeric Augustin
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner