Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/admin_views
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed #22360 -- Fixed two non-deterministic tests in ↵Loic Bistuer2014-03-311-22/+119
| | | | | | | Python 3.4. The order of admin's changelist filters in the querystring relied on dict ordering.
* Fixed #21795 -- Made add_preserved_filters account for ↵Loic Bistuer2014-03-311-5/+33
| | | | | | url prefixes. Thanks to trac username honyczek for the report. Refs #6903.
* Corrected many style guide violations that the newest ↵Alex Gaynor2014-03-301-1/+1
| | | | version of flake8 catches
* Fixed #22087 -- Made AdminReadonlyField respect ↵Ben Davis2014-03-253-2/+38
| | | | ModelForm Meta overrides.
* Fixed #22241 -- Selectively added line breaks in admin ↵Claude Paroz2014-03-222-2/+8
| | | | | | | | 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.
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-14/+14
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Fixed #22135 -- Added ↵Greg Chapple2014-03-032-0/+17
| | | | | | | | | | 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.
* Edited contrib.admin check messages for grammar and ↵Russell Keith-Magee2014-03-031-1/+1
| | | | consistency.
* Fixed #21924 -- Added the ability to specify a reverse ↵Klemens Mantzos2014-02-153-2/+27
| | | | | | 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-113-2/+57
| | | | | | | | | 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 #21371 -- Added the block.super to admin bodyclass ↵julien 'pouete' Godin2014-02-102-16/+86
| | | | | | blocks. Thanks Keryn Knight for the report.
* Removed the this_is_the_login_form hackClaude Paroz2014-02-041-12/+0
| | | | | | 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.
* Fixed #21911 -- Made admin views redirect to login when ↵Claude Paroz2014-02-041-54/+70
| | | | | | | | | | | 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.
* Made staff_member_required redirect to loginClaude Paroz2014-02-041-150/+32
| | | | Refs #21911.
* 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 #16905 -- Added extensible checks (nee validation) ↵Russell Keith-Magee2014-01-201-10/+21
| | | | | | | | | | | 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.
* Removed useless model definitions.Aymeric Augustin2014-01-051-32/+16
| | | | | | | 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.
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-1/+1
|
* Fixed E127 pep8 warnings.Loic Bistuer2013-12-141-2/+2
|
* Fixed #21510 -- Readded search reset link in changelist ↵Claude Paroz2013-12-111-3/+12
| | | | | | | search bar Thanks moritz.pfeiffer at alp-phone.ch for the report and Tim Graham for the initial patch.
* Fixed #20522 - Allowed use of partially validated object ↵Jay Leadbetter2013-11-263-3/+107
| | | | | | | | | | 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.
* Fixed test breakage under python 3 introduced by ↵Baptiste Mispelon2013-11-231-1/+1
| | | | a480f8320a5b36501bfd0e8cd70b8dc04adf2d08.
* Fixed #21431 -- GenRel->FK list_filter regression in adminAnssi Kääriäinen2013-11-211-0/+18
| | | | Report, analysis and tests from stephenmcd.
* Refs #8261 -- Fixed regression introduced by fd219fa.Loic Bistuer2013-11-212-0/+12
| | | | | ModelAdmin displayed the "View on site" link even if the Model didn't define the `get_absolute_url()` method.
* PEP8 cleanupJason Myers2013-11-033-20/+38
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* PEP8Jason Myers2013-11-031-0/+22
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed all E261 warningscoagulant2013-11-033-7/+7
|
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-021-1/+0
|
* Fixed #8261 -- ModelAdmin hook for customising the "show ↵Unai Zalakain2013-10-294-3/+201
| | | | | | | | | | | 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 all the E203 violationsAlex Gaynor2013-10-271-4/+4
|
* Fixed #21299 - Changed filters from title to capfirst on ↵Renato Oliveira2013-10-241-2/+2
| | | | | | | admin inline formsets. Previously there was a mixture of the two which resulted in inconsistent casing.
* Start attacking E231 violationsAlex Gaynor2013-10-241-1/+1
|
* Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol2013-10-231-0/+5
|
* Fixed E225 pep8 warnings.Tim Graham2013-10-231-3/+3
|
* Removed some direct settings manipulations in tests; ↵Bouke Haarsma2013-10-211-21/+5
| | | | refs #21230.
* Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol2013-10-212-13/+10
|
* Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol2013-10-182-4/+4
|
* Fixed "redefinition of unused 'foo' from line X" ↵Tim Graham2013-10-101-5/+0
| | | | pyflakes warnings.
* Fixed #11277 -- Hid labels of fields with HiddenInput ↵Christopher Medrela2013-10-043-1/+86
| | | | | | widget in admin forms. Thanks bartTC for the report.
* Fixed #9532 -- Added min_num and validate_min on formsets.yokomizor2013-09-191-5/+5
| | | | Thanks gsf for the suggestion.
* Fixed #17627 -- Renamed util.py files to utils.pyTim Graham2013-09-162-3/+3
| | | | | Thanks PaulM for the suggestion and Luke Granger-Brown and Wiktor Kołodziej for the initial patch.
* Fixed #21056 -- AdminSite.app_index no longer blindly ↵Keryn Knight2013-09-111-1/+15
| | | | accepts any app-labelish input.
* Fixed #21063 -- AdminSite app_index should be fail early ↵Keryn Knight2013-09-091-0/+21
| | | | if the user has no permissions.
* Added a test to show that the user.is_staff check in ↵Tim Graham2013-09-091-0/+13
| | | | | | admin base.html is necessary. refs #21067
* Removed some more unused local varsAlex Gaynor2013-09-081-13/+13
|
* Removed a ton of unused local varsAlex Gaynor2013-09-081-12/+11
|
* Fixed #21013 -- Ensure that ModelAdmin.get_queryset is ↵Juan Catalano2013-09-073-2/+40
| | | | considered for the admin history view.
* Fixed a test failure introduced in ↵Julien Phalip2013-09-071-1/+1
| | | | 55a11683f7b094ae4fd0b9fa030d18a12657ba98.
* Took advantage of django.utils.six.moves.urllib.*.Aymeric Augustin2013-09-051-5/+2
|
* Converted tests for admin first form widget auto-focus ↵Ramiro Morales2013-09-011-21/+19
| | | | | | to Selenium. Refs #1707 and 1c0c879be3.