summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_views
AgeCommit message (Collapse)Author
2011-03-09[1.2.X] Fixed a number of tests that were failing in Oracle due to false ↵Ian Kelly
assumptions about the primary keys of objects. Backport of r15779 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15780 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-08[1.2.X] Fixed field names that were preventing the tests from running in ↵Ian Kelly
Oracle. Backport of r15774 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15775 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-03[1.2.X] Fixed #12475 -- Fixed an edge case with hidden fields in ModelAdmin ↵Jannis Leidel
changelists when used in conjunction with list_display_links or list_editable. Thanks, Simon Meers, Julien Phalip, Karen and master. Backport from trunk (r15722). git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15724 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-26[1.2.X] Fixed #10918 -- Ensure that the search widget on a raw_id_admin uses ↵Russell Keith-Magee
the right field name when the ForeignKey has a to_field definition. Thanks to David Cramer for the report, Collin Anderson for the fix, and Julien Phalip for the test. Backport of r15657 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-24[1.2.X] Prevented non-admin users from accessing the admin redirect shortcut.Jacob Kaplan-Moss
If the admin shortcut view (e.g. /admin/r/<content-type>/<pk>/) is publically-accessible, and if a public users can guess a content-type ID (which isn't hard given that they're sequential), then the redirect view could possibly leak data by redirecting to pages a user shouldn't "know about." So the redirect view needs the same protection as the rest of the admin site. Thanks to Jason Royes for pointing this out. Backport of [15639] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15640 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-24[1.2.X] Fixed #14012 (again) -- Admin app: Don't show the full user edition ↵Ramiro Morales
view after adding a user in a FK popup. Thanks dburke for reporting this regression introduced in r14628. Backport of [15637] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15638 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-20[1.2.X] Fixed #14529 -- Fixed representation of model names in admin ↵Ramiro Morales
messages after model object changes when the ModelAdmin queryset() uses defer() or only(). Thanks rlaager for report and initial patch, to rasca an julien for help in tracking the problem. Backport of [15596] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15597 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-19[1.2.X] Fixed #11513 -- Ensure that the redirect at the end of an object ↵Russell Keith-Magee
change won't redirect to a page for which the user doesn't have permission. Thanks to rlaager for the report and draft patch, and to Julien Phalip for the final patch. Backport of r15584 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15586 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-19[1.2.X] Fixed #14355 -- Ensure that help_text is displayed for readonly ↵Russell Keith-Magee
fields in the admin. Thanks to jester for the report, and to alexbmeng, subsume, wamberg and Julien Phalip for ther work on the patch. Backport of r15582 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15583 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-19[1.2.X] Fixed #13126 -- Ensured that individual form errors are displayed ↵Russell Keith-Magee
when errors occur on a list-editable changelist. Thanks to slafs for the report, and to Julien Phalip for the patch. Backport of r15580 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15581 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-09[1.2.X] Ensure that L10N formats aren't cached between tests.Russell Keith-Magee
Backport of r15461 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15463 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-09Corrected merge failure from r15455.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15462 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-08[1.2.X] Fixed #10573 -- Corrected autofocus problem in admin when the first ↵Russell Keith-Magee
widget displayed is a multiwidget. Thanks to rduffield for the report, and to Ramiro and Julien Phalip for the patch. Backport of r15452 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15456 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-08[1.2.X] Fixed #15234 -- Ensure that years in a date heirarchy don't use ↵Russell Keith-Magee
commas for thousand separators, regardless of the value of USE_THOUSAND_SEPARATOR. Thanks to Julien Phalip for the report and patch. Backport of r15451 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-04[1.2.X] Fixed #14824 -- Corrected the handling of formats when USE_L10N is ↵Russell Keith-Magee
disabled. Thanks to nullie for the report and initial patch, and to idle for the separate report with helpful debug info. Backport of r15404 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-28[1.2.X] Fixed #14880 - raw_id_fields in admin does not work when ↵Luke Plant
limit_choices_to dictionary has value=False Thanks to smallming for the report. Backport of [15348] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15351 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-28[1.2.X] Fixed #15103 - SuspiciousOperation with limit_choices_to and ↵Luke Plant
raw_id_fields Thanks to natrius for the report. This patch also fixes some unicode bugs in affected code. Backport of [15347] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-13[1.2.X] Fixed #2986 -- Made the JavaScript code that drives related model ↵Ramiro Morales
instance addition in a popup window handle a model representation containing new lines. Also, moved the escapejs functionality to django.utils.html so it can be used from Python code. Thanks andrewwatts for the patch. Backport of [15131] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15191 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-12[1.2.X] Fixed #15032 -- Replaced 1.2.X implementation of admin changelist ↵Ramiro Morales
filtering security fix (r15031/r15033) with the one from trunk so another valid filter usage scenario (using model inheritance) is still possible. Thanks rene for reporting this. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15177 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-03[1.2.X] Fixed #14999 -- Ensure that filters on local fields are allowed, and ↵Russell Keith-Magee
aren't caught as a security problem. Thanks to medhat for the report. Backport of r15139 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15140 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-23Fix a security issue in the admin. Disclosure and new release forthcoming.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15033 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-04[1.2.X] Removed all usages of deprecated TestCase methods (self.fail*). ↵Alex Gaynor
This removed most of the Warnings emitted (with -Wall) during the test suite. Backport of [14803]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14805 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-02[1.2.X] Fixed #8342 -- Removed code from the admin that assumed that you ↵Jannis Leidel
can't login with an email address (nixed by r12634). Backport from trunk (r14769). git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14773 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-19[1.2.X] Corrected change in behavior regarding the page shown after the ↵Ramiro Morales
'Save' button is pressed when adding a user through the admin. It had been introduced in trunk (r13503) and between 1.2.1 and 1.2.2 (r13504). The original fix intended to correct a similar problem introduced between 1.1 and 1.2 (r12218) this time in the 'Save and add another' button. We have now tests for the three buttons present in the Add User admin form to avoid future regressions. Thanks to Juan Pedro Fisanotti and Cesar H. Roldan for their work. Backport of [14628] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14629 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-10[1.2.X] Fixed #12650 -- Don't generate invalid XHTML in the admin, ↵Ramiro Morales
databrowse apps when the i18n context processor is active. Thanks to Rob Hudson for the report and fix suggestion. Backport of [14104] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14105 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-12[1.2.X] Fix AdminDocsTest failure on 1.2.X branch by correcting the test to ↵Karen Tracey
reference an app tag that actually exists in 1.2.X. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13764 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-11[1.2.X] Adjust AdminDocTests to run after r13728. Also match comments to ↵Malcolm Tredinnick
tests and add test that was there in comment form only.Refs #3695. Backport of r13737 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13750 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-07[1.2.X] Fixed #13081 - Admin actions lose get-parameters in changelist viewLuke Plant
Thanks to joh for report and to SmileyChris for patch. Backport of [13696] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-19[1.2.X] Fixed #14123 -- Made AdminDocs tests optional, based on the ↵Russell Keith-Magee
availability of docutils. Thanks to PaulM for the original report, and Łukasz Rekucki for narrowing down the cause. Backport of r13606 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13607 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-14[1.2.X] Fixed #13796 -- Ensure that builtin tags and filters are included in ↵Russell Keith-Magee
admin documentation views. Backport of r13588 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13589 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-06[1.2.X] Fixed #14014 -- Ensure that the "save and add another" button for ↵Russell Keith-Magee
users actually does what it says. Thanks to Ramiro for the report. Backport of r13503 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-06[1.2.X] Fixed #14012 -- Corrected the handling of the create user popup ↵Russell Keith-Magee
dialog in the admin. Thanks to gk@lka.hu for the report, and Ramiro Morales for the patch. Backport of r13051 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13502 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-13Fixed #13514 -- Corrected the process of loading multiple javascript ↵Russell Keith-Magee
translation catalogs. Thanks to jtiai for the report, to Ramiro Morales for working out the test case, and to Ramiro and Jannis for their help on the fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-02Fixed #13166 - Added JavaScript warnings to admin changelist to help against ↵Jannis Leidel
ambiguity between action and list_editable form submission. Thanks to blinkylights and aaugustin for the report and initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13072 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-02Fixed #13388 - Refined changes made in r12384 in the JavaScript i18n admin view.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13069 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-19Fixed #13361 - Made sure jQuery is always included in the admin changelist ↵Jannis Leidel
and changeform. Thanks to Carl Meyer for report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12997 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-13Fixed #12903 - Made translating the admin action selection text easier. ↵Jannis Leidel
Thanks to Ramiro Morales for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12968 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-11Fixed #13301 -- Corrected problem with capitalization of changelist row ↵Russell Keith-Magee
headers in admin. Thanks to emyller for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12947 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-11Fixed #13298 -- Modified test assertion to ensure that javascript variables ↵Russell Keith-Magee
aren't mistakenly identified as <input> HTML tags. Thanks to mk for the report and fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12946 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-05Fixed #13038 -- Ensured that readonly fields in the admin have their name ↵Russell Keith-Magee
added as a CSS class. Thanks to andybak for the report, and javimansilla, fisadev and fgallina for their work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12922 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-05Fixed #11949 -- Added a hook to allow ModelAdmin customization of the delete ↵Russell Keith-Magee
selected template. Thanks to bendavis78 for the report and patch, and Ramiro Morales for his cleanup work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12916 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-21Fixed #13004: Ensure the add page for a model with a ManyToManyField specifiedKaren Tracey
in readonly_fields does not raise an exception. Thanks hejsan, mlavin, copelco. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12827 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-20Fixed #12962: Made admin delete action work again. Thanks ptone, skevy, ↵Karen Tracey
mlavin and anyone else I've missed. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12813 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-16Fixed #12105: Corrected handling of isnull=False lookups in admin. Thanks ↵Karen Tracey
marcob, Travis Cline, gabrielhurley. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12795 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-16Fixed #12434: Made pretty_name handle empty string and None as input. Thanks ↵Karen Tracey
ales_zoulek and gabrielhurley. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12794 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-10Clean up a stray debugging print from [12746].James Bennett
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12747 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-10Ensure that NullBooleanField displays the appropriate icon for null values ↵James Bennett
in admin changelists. Refs #13071. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12746 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-02Fixed #11710: Made a small test change to ensure utf-8 bytestrings inKaren Tracey
verbose_names don't cause a server error when the admin change log message is built. The necessary code fix was made for #12966 in r12627. Thanks Rupe. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12650 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-01Fixed test of the admin actions selection counter for changes made in ↵Jannis Leidel
r12626. Thanks for the report, Eric Holscher. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12633 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-26Added file omitted from r12598.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12599 bcc190cf-cafb-0310-a4f2-bffc1f526a37