summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_views
AgeCommit message (Collapse)Author
2011-02-24Fixed #14012 (again) -- Admin app: Don't show the full user edition view ↵Ramiro Morales
after adding a user in a FK popup. Thanks dburke for reporting this regression introduced in r14628. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15637 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-20Fixed #14529 -- Fixed representation of model names in admin messages after ↵Ramiro Morales
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. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15596 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-19Fixed #11513 -- Ensure that the redirect at the end of an object change ↵Russell Keith-Magee
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. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15584 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-19Fixed #14355 -- Ensure that help_text is displayed for readonly fields in ↵Russell Keith-Magee
the admin. Thanks to jester for the report, and to alexbmeng, subsume, wamberg and Julien Phalip for ther work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15582 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-19Fixed #13126 -- Ensured that individual form errors are displayed when ↵Russell Keith-Magee
errors occur on a list-editable changelist. Thanks to slafs for the report, and to Julien Phalip for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15580 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-16Corrected small error when preserving an I18N-related setting value in an ↵Ramiro Morales
admin views test setup. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15550 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-09Ensure that L10N formats aren't cached between tests.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15461 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-08Cleaned up the tests from r15451 to avoid the need to retrieve a URL twice.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15453 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-08Fixed #10573 -- Corrected autofocus problem in admin when the first widget ↵Russell Keith-Magee
displayed is a multiwidget. Thanks to rduffield for the report, and to Ramiro and Julien Phalip for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15452 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-08Fixed #15234 -- Ensure that years in a date heirarchy don't use commas for ↵Russell Keith-Magee
thousand separators, regardless of the value of USE_THOUSAND_SEPARATOR. Thanks to Julien Phalip for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15451 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-06Fixed #14895 -- Ensure that USE_THOUSAND_SEPARATOR doesn't break the delete ↵Russell Keith-Magee
confirmation page. Thanks to Tuttle for the report, and Julien Phalip for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15435 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-04Fixed #14824 -- Corrected the handling of formats when USE_L10N is disabled. ↵Russell Keith-Magee
Thanks to nullie for the report and initial patch, and to idle for the separate report with helpful debug info. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15404 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-28Fixed #14880 - raw_id_fields in admin does not work when limit_choices_to ↵Luke Plant
dictionary has value=False Thanks to smallming for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15348 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-28Fixed #15103 - SuspiciousOperation with limit_choices_to and raw_id_fieldsLuke Plant
Thanks to natrius for the report. This patch also fixes some unicode bugs in affected code. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-20Poured a little more perfectionism into the delete-confirmation templates.Carl Meyer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-20Fixed #14672 - Added admin handling for on_delete=PROTECT. Thanks to jtiai ↵Carl Meyer
for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15249 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-12Added tests demonstrating that filtering lookup expression that involve ↵Ramiro Morales
model with inheritance schemes aren't incorrectly blacklisted by the r15031 security fix. Refs. #15032. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15178 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-03Fixed #14999 -- Ensure that filters on local fields are allowed, and aren't ↵Russell Keith-Magee
caught as a security problem. Thanks to medhat for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15139 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-02Fixed #2986 -- Made the JavaScript code that drives related model instance ↵Ramiro Morales
addition in a popup window handle a model representation containing new lines. Also, moved the escapejs functionality yoo django.utils.html so it can be used from Python code. Thanks andrewwatts for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15131 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-02Fixed #11700 -- Stopped admin actions and list_editable fields to show up in ↵Jannis Leidel
popups. Thanks to Simon Meers for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15129 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/trunk@15031 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-12Fixed #13607 -- Auto-initialize admin's date hierarchy links intelligently. ↵Jannis Leidel
Thanks, Simon Meers. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14879 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-04Removed all usages of deprecated TestCase methods (self.fail*). This ↵Alex Gaynor
removed most of the Warnings emitted (with -Wall) during the test suite. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-02Fixed #8342 -- Removed code from the admin that assumed that you can't login ↵Jannis Leidel
with an email address (nixed by r12634). Also refactored login code slightly to be DRY by using more of auth app's forms and views. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14769 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-21Fixed #3400 -- Support for lookup separator with list_filter admin option. ↵Honza Král
Thanks to DrMeers and vitek_pliska for the patch! git-svn-id: http://code.djangoproject.com/svn/django/trunk@14674 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-21Fixed #11108 -- added ModelAdmin.delete_model, a hook with which to perform ↵Alex Gaynor
custom pre-post delete behavior. Thanks to Florian Apolloner for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14673 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-19Corrected change in behavior regarding the page shown after the 'Save' ↵Ramiro Morales
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. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14628 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft ↵Russell Keith-Magee
patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14139 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-10Fixed #12650 -- Don't generate invalid XHTML in the admin, databrowse apps whenRamiro Morales
the i18n context processor is active. Thanks to Rob Hudson for the report and fix suggestion. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14104 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-11Adjust AdminDocTests to run after r13728. Also match comments to tests and ↵Karen Tracey
add test that was there in comment form only.Refs #3695. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13737 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-10Adding related objects in the admin (via popup) respects userMalcolm Tredinnick
permissions. Patch from SmileyChris. Fixed #1035. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13708 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-07Fixed #13081 - Admin actions lose get-parameters in changelist viewLuke Plant
Thanks to joh for report and to SmileyChris for patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13696 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-19Fixed #14123 -- Made AdminDocs tests optional, based on the availability of ↵Russell Keith-Magee
docutils. Thanks to PaulM for the original report, and Łukasz Rekucki for narrowing down the cause. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13606 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-14Fixed #13796 -- Ensure that builtin tags and filters are included in admin ↵Russell Keith-Magee
documentation views. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13588 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-06Fixed #14014 -- Ensure that the "save and add another" button for users ↵Russell Keith-Magee
actually does what it says. Thanks to Ramiro for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13503 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-06Fixed #14012 -- Corrected the handling of the create user popup dialog in ↵Russell Keith-Magee
the admin. Thanks to gk@lka.hu for the report, and Ramiro Morales for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13501 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