summaryrefslogtreecommitdiff
path: root/tests/admin_views
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-08-20[1.7.x] Prevented data leakage in contrib.admin via query string manipulation.Simon Charette
This is a security fix. Disclosure following shortly.
2014-07-14[1.7.x] Fixed #22994 -- regression with generic FK + admin list_viewAnssi Kääriäinen
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.
2014-07-12[1.7.x] Fixed #22939 -- Delayed admin_static backend detectionClaude Paroz
Thanks generalov for the report. Backport of 22b2fb0b from master
2014-07-07[1.7.x] Renamed an admin_views test to fix ordering issue.Tim Graham
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.
2014-07-07[1.7.x] Fixed #22909 -- Removed camelCasing in some tests.Tim Graham
Thanks brylie. Backport of 89b9e6e5d6 from master
2014-06-11[1.7.x] Fixed #22653 -- Added some database feature flags to tests.Tim Graham
Thanks Rahul Priyadarshi. Backport of 99f5ea9cc8 from master
2014-06-09[1.7.x] Removed unused import.Tim Graham
Backport of fea8ccdcc4 from master
2014-06-09[1.7.x] Fixed #20420 -- Normalized query counts on Oracle.Aymeric Augustin
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.
2014-05-29[1.7.x] Fixed several typos in DjangoAlex Gaynor
Backport of 1dcc603eff from master
2014-05-16[1.7.x] Fixed #22266 - quote PK before redirecting away from add_view ↵Stas Rudakou
(django.contrib.admin) Backport of ebd70d4d00c252d5122c13906da5bddc8de0bce5 from master.
2014-05-15[1.7.x] Harmonized some PEP 0263 coding preamblesClaude Paroz
Backport of e520a73ee from master.
2014-05-08[1.7.x] Replaced vendor checks by three feature flags.Aymeric Augustin
Backport of c70a61eb from master
2014-04-26[1.7.x] Fix many many typos in comments throughout the codebaseAlex Gaynor
Backport of 2bcb8bfc8d from master
2014-04-24[1.7.x] Fixed #22499 -- Fixed a typo in an admin_views test that caused ↵Tim Graham
failure on Oracle. Backport of d238c58912 from master
2014-04-21[1.7.x] Corrected many style guide violations that the newest version of ↵Alex Gaynor
flake8 catches Backport of 778ce245dd466bce1b19f89e52cf9ed8f1b46513 from master
2014-04-07[1.7.x] Fixed #21084 -- Used proxy model's content type for admin log entries.Alejandro Gómez
Backport of 7a7f6fccae from master
2014-03-31[1.7.x] Fixed #22360 -- Fixed two non-deterministic tests in Python 3.4.Loic Bistuer
The order of admin's changelist filters in the querystring relied on dict ordering. Backport of 4d996b8e69 from master
2014-03-31[1.7.x] Fixed #21795 -- Made add_preserved_filters account for url prefixes.Loic Bistuer
Thanks to trac username honyczek for the report. Refs #6903. Backport of 4339e9a92d from master
2014-03-25[1.7.x] Fixed #22087 -- Made AdminReadonlyField respect ModelForm Meta ↵Ben Davis
overrides. Backport of 16afffffe8 from master
2014-03-22[1.7.x] Fixed #22241 -- Selectively added line breaks in admin read-only fieldsClaude Paroz
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.
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2014-03-03Fixed #22135 -- Added ModelAdmin.get_changeform_initial_data().Greg Chapple
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.
2014-03-03Edited contrib.admin check messages for grammar and consistency.Russell Keith-Magee
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-02-10Fixed #21371 -- Added the block.super to admin bodyclass blocks.julien 'pouete' Godin
Thanks Keryn Knight for the report.
2014-02-04Removed the this_is_the_login_form hackClaude Paroz
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.
2014-02-04Fixed #21911 -- Made admin views redirect to login when neededClaude Paroz
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.
2014-02-04Made staff_member_required redirect to loginClaude Paroz
Refs #21911.
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.
2014-01-20Fixed #16905 -- Added extensible checks (nee validation) frameworkRussell Keith-Magee
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.
2014-01-05Removed useless model definitions.Aymeric Augustin
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.
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-12-14Fixed E127 pep8 warnings.Loic Bistuer
2013-12-11Fixed #21510 -- Readded search reset link in changelist search barClaude Paroz
Thanks moritz.pfeiffer at alp-phone.ch for the report and Tim Graham for the initial patch.
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-23Fixed test breakage under python 3 introduced by ↵Baptiste Mispelon
a480f8320a5b36501bfd0e8cd70b8dc04adf2d08.
2013-11-21Fixed #21431 -- GenRel->FK list_filter regression in adminAnssi Kääriäinen
Report, analysis and tests from stephenmcd.
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-02PEP8Jason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02Fixed all E261 warningscoagulant
2013-11-02Fixed #21302 -- Fixed unused imports and import *.Tim Graham
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-26Fixed all the E203 violationsAlex Gaynor
2013-10-24Fixed #21299 - Changed filters from title to capfirst on admin inline formsets.Renato Oliveira
Previously there was a mixture of the two which resulted in inconsistent casing.
2013-10-24Start attacking E231 violationsAlex Gaynor
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-10-23Fixed E225 pep8 warnings.Tim Graham