Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/admin_views/models.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25622 -- Accounted for generic relations in the ↵Simon Charette2015-10-291-0/+11
| | | | | | admin to field validation Thanks to Jonathan Liuti for the report and Tim Graham for the review.
* Fixed #25058 -- Added GenericRelations with ↵sarthakmeh2015-09-031-0/+9
| | | | related_query_name to the admin's delete confirmation page.
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-49/+75
| | | | on_delete for ForeignKey/OneToOneField
* Refs #24919 -- Made test models serializable for migrations.Tim Graham2015-07-211-3/+5
|
* Fixed #16501 -- Added an allow_unicode parameter to ↵Edward Henderson2015-07-171-0/+1
| | | | | | SlugField. Thanks Flavio Curella and Berker Peksag for the initial patch.
* Fixed #23387 -- Kept "Save as new" button after ↵Adam Zapletal2015-05-031-0/+9
| | | | | | | | | 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.
* Refs #24461 -- Added test/release notes for XSS issue in ↵Baptiste Mispelon2015-03-091-0/+7
| | | | | | ModelAdmin.readonly_fields This issue was fixed by refs #24464.
* Guaranteed removal of temporary files during tests.Aymeric Augustin2015-02-231-1/+1
| | | | | | | 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.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-2/+2
|
* Fixed #13165 -- Added edit and delete links to admin ↵Simon Charette2015-01-101-1/+2
| | | | | | | foreign key widgets. Thanks to Collin Anderson for the review and suggestions and Tim for the final review.
* Fixed #23934 -- Fixed regression in admin views obj ↵Kamil Braun2014-12-021-0/+9
| | | | parameter.
* Fixed #23915 -- Made sure m2m fields through non-pk ↵Simon Charette2014-11-251-3/+9
| | | | | | to_field are allowed in the admin. refs #23754, #23862
* Fixed #23754 -- Always allowed reference to the primary ↵Simon Charette2014-11-251-11/+16
| | | | | | | | | | | 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.
* Fixed #21196 -- Removed index on test field causing ↵Thomas Chaumeny2014-10-191-1/+2
| | | | MySQL specific warning.
* Fixed #23604 -- Allowed related m2m fields to be ↵Emmanuelle Delescolle2014-10-061-0/+10
| | | | | | references in the admin. Thanks Simon Charette for review.
* Fixed #23431 -- Allowed inline and hidden references to ↵Simon Charette2014-09-081-0/+13
| | | | | | | | | | 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.
* Fixed #23329 -- Allowed inherited and m2m fields to be ↵Simon Charette2014-08-281-0/+17
| | | | | | referenced in the admin. Thanks to Trac alias Markush2010 and ross for the detailed reports.
* Fixed #22087 -- Made AdminReadonlyField respect ↵Ben Davis2014-03-251-0/+7
| | | | ModelForm Meta overrides.
* Fixed #21924 -- Added the ability to specify a reverse ↵Klemens Mantzos2014-02-151-0/+5
| | | | | | order for admin_order_field. Thanks Klemens Mantzos for the report and initial patch.
* Fixed #2445 -- Allowed limit_choices_to attribute to be ↵Christopher Adams2014-02-111-0/+27
| | | | | | | | | 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.
* Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette2014-01-261-3/+5
| | | | | | | It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
* Fixed #20522 - Allowed use of partially validated object ↵Jay Leadbetter2013-11-261-0/+20
| | | | | | | | | | 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.
* Refs #8261 -- Fixed regression introduced by fd219fa.Loic Bistuer2013-11-211-0/+6
| | | | | ModelAdmin displayed the "View on site" link even if the Model didn't define the `get_absolute_url()` method.
* PEP8 cleanupJason Myers2013-11-031-0/+22
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed all E261 warningscoagulant2013-11-031-1/+1
|
* Fixed #8261 -- ModelAdmin hook for customising the "show ↵Unai Zalakain2013-10-291-0/+16
| | | | | | | | | | | 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.
* Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol2013-10-231-0/+5
|
* Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol2013-10-211-6/+5
|
* Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol2013-10-181-1/+1
|
* Fixed #11277 -- Hid labels of fields with HiddenInput ↵Christopher Medrela2013-10-041-0/+9
| | | | | | widget in admin forms. Thanks bartTC for the report.
* Fixed #21013 -- Ensure that ModelAdmin.get_queryset is ↵Juan Catalano2013-09-071-0/+11
| | | | considered for the admin history view.
* Fixed #16433 -- Fixed a help_text/read only field ↵Tim Graham2013-08-291-1/+1
| | | | | | interaction that caused an admin crash. Thanks chris at cogdon.org for the report and admackin for the patch.
* Fixed #20640 -- Avoided NoReverseMatch in ↵Rainer Koirikivi2013-08-191-0/+6
| | | | | | | | | | | 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.
* Fixed #20895 -- Made check management command warn if a ↵Alasdair Nicol2013-08-161-4/+4
| | | | | | | BooleanField does not have a default value Thanks to Collin Anderson for the suggestion and Tim Graham for reviewing the patch.
* Fixed #19082 -- Enabled admin field pre-population for ↵Julien Phalip2013-07-301-2/+2
| | | | | existing objects. Thanks to msaelices and d1ffuz0r for the initial patch and tests.
* Fixed #19773 - Added admin/popup_response.html template.Javier Mansilla2013-06-251-1/+1
| | | | Thanks jimmylam@ for the suggestion.
* Fixed #20182 - admin lookup should treat 0 as False for ↵Tim Graham2013-05-271-0/+3
| | | | | | __isnull Thanks Benjie Chen.
* Fixed #15961 -- Modified ModelAdmin to allow for custom ↵Bozidar Benko2013-05-191-0/+6
| | | | | | | | | 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.
* Fixed test failures introduced in e16c48e001.Aymeric Augustin2013-03-241-3/+3
|
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-261-0/+680