summaryrefslogtreecommitdiff
path: root/tests/regressiontests
AgeCommit message (Collapse)Author
2011-02-21Fixed #14099 - BaseModelFormSet should use _should_delete_formLuke Plant
Thanks to kenth for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15612 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-21Fixed #11707 - limit_choices_to on a ForeignKey can render duplicate options ↵Luke Plant
in formfield Thanks to Chris Wesseling for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15607 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-21Fixed #15359 -- Ensure that the -h option is always honored by ↵Russell Keith-Magee
django-admin.py. Thanks to teubank for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15605 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-21Fixed #15362: Added explicit deletion of file to test, needed now since ↵Karen Tracey
files are no longer auto-deleted when a referencing object is deleted. Thanks mila. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15602 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-20Ensure render_to_string leaves the context instance stack in the state it ↵Chris Beaven
was originally passed in. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15591 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-19Fixed #12893 -- Added tests to validate that the right queryset is always ↵Russell Keith-Magee
used in model admins. Thanks to mk and Julien Phalip for their work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15578 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-19Fixed #15291 -- Corrected alignment issue when actions are disabled in a ↵Russell Keith-Magee
ModelAdmin. Thanks to Julien Phalip for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15573 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-17Fixed #15260 -- Ensured that CACHE_MIDDLEWARE_ANONYMOUS_ONLY is effective ↵Carl Meyer
with the cache_page decorator, not only the middleware. Thanks to brodie for report and draft patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15559 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-17Reduced code duplication in cache middleware tests.Carl Meyer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15557 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-16Changed strategy used to force evaluation of django.utils.translation in ↵Ramiro Morales
tests added in r15508 and r15513 to not use reload(). Thanks Alex for reporting it caused problems. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15554 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-16Fix the test isolation from [15552].Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15553 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-16Fixed #15314 -- Added tests for the static URL pattern function added in ↵Jannis Leidel
r15530 and made sure the **kwargs are passed to the view correctly. Thanks for the report and initial patch, Bruno Renié. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15552 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-16Moved the test added in r15504 to a different case where it doesn't actually ↵Jannis Leidel
verify the existence of the URL by calling urlopen but only validates it. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15551 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-15Fixed a test case introduced in r15538 by creating a test file with ↵Jannis Leidel
non-ASCII characters dynamically. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15541 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-15Fixed #15247 -- Ensured that if a SingleObject view defines get_object but ↵Russell Keith-Magee
not get_queryset, the ModelFormMixin doesn't fail. Thanks to Sergey N. Belinsky for the report and test case. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15540 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-14Fixed the staticfiles management commands collectstatic and findstatic to ↵Jannis Leidel
not raise encoding related exceptions when handlings filenames with non-ASCII characters. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15538 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-14Fixed #15298 -- Raise a better error when a TemplateResponseMixin doesn't ↵Russell Keith-Magee
have a template_name defined. Thanks to rasca for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15532 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-14Fixed #15272 -- Altered generic views to use the guaranteed untranslated ↵Russell Keith-Magee
object_name, rather than the possibly translated verbose_name(_plural) for default context objects. Thanks to szczav for the report and patch. This is BACKWARDS INCOMPATIBLE for anyone relying on the default context object names for class-based Detail and List views. To migrate, either update your templates to use the new default names, or add a context_object_name argument to your generic views. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-14Fixes #15270 -- Moved back the serve view to django.views.static due to ↵Jannis Leidel
dependency conflicts with the contrib app staticfiles (reverts parts of r14293). Added a helper function that generates URL patterns for serving static and media files during development. Thanks to Carl for reviewing the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15530 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-13Fixed #13902 -- Fixed admin list_filter so it doesn't show duplicate results ↵Ramiro Morales
when it includes a field spec that involves m2m relationships with an intermediate model. Thanks Iván Raskovsky for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15526 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-13Fixed #13007 -- Made cookie parsing resilent to the presence of cookies with ↵Ramiro Morales
invalid characters in their names. Thanks Warlax for the report, Ubercore for his work on a fix and Jannis and Luke for review and guidance. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15523 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-13Fixed #14130 -- Made manage.py error reporting more useful when the ↵Ramiro Morales
settings.py file triggers import errors (in new projects). Thanks Setok for the report, mk and steph for their work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15522 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-12Added a test for the PendingDeprecationWarning introduced in r15441. Refs ↵Ramiro Morales
#14924, #15286. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15513 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-12Fixed #15286 -- Don't show deprecation warning if project locale dir is ↵Jannis Leidel
included in LOCALE_PATHS. Thanks to Claude and Ramiro. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15508 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-12Fixed #15237 -- Always set charset of Atom1 feeds to UTF-8. Thanks, Simon ↵Jannis Leidel
and jasonkotenko. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15505 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-12Fixed #14941 -- Stop raising ValidationError in form fields that use the ↵Jannis Leidel
URLValidator and get a IDN domain passed. Thanks, Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-12Fixed #14132 -- Fixed feedgenerator to support years < 1900. Thanks, mk.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15503 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-12Fixed #12988 -- Extended regular expression of the URLValidator to fully ↵Jannis Leidel
support IDN-URLs, especially the long TLDs. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15502 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-12Fixed #14955 -- Made the URLValidator use a HEAD request when verifying a ↵Jannis Leidel
URL. Thanks, Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15500 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-12Fixed #13987 -- Ensure that the primary key is set correctly for all models ↵Russell Keith-Magee
that have concrete-abstract-concrete inheritance, not just the first model. Thanks to Aramgutang for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15498 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-12Fixed #9964 -- Ensure that all database operations make transactions dirty, ↵Russell Keith-Magee
not just write operations. Many thanks to Shai Berger for his work and persistence on this issue. This is BACKWARDS INCOMPATIBLE for anyone relying on the current behavior that allows manually managed read-only transactions to be left dangling without a manual commit or rollback. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15493 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-09Fixed #15182 - Fixed a security issue with ClearableFileInput. Disclosure ↵Carl Meyer
and new release forthcoming. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15470 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-09Fixed a security issue in the CSRF component. Disclosure and new release ↵Alex Gaynor
forthcoming. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15464 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-08Fixed #13815 -- Ensure that reverse exclude lookups on nullable foreign keys ↵Russell Keith-Magee
exclude null values. Thanks to bpeschier for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15458 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-08Fixed #15175 -- Ensured that Chliean RUT checksum letters aren't case ↵Russell Keith-Magee
sensitive. Thanks to rvimer for the report, and to ersame for the patch. H: Enter commit message. Lines beginning with 'HG:' are removed. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-07Fixed #5494, #10765, #14924 -- Modified the order in which translations are ↵Ramiro Morales
read when composing the final translation to offer at runtime. This is slightly backward-incompatible (could result in changed final translations for literals appearing multiple times in different .po files but with different translations). Translations are now read in the following order (from lower to higher priority): For the 'django' gettext domain: * Django translations * INSTALLED_APPS apps translations (with the ones listed first having higher priority) * settings/project path translations (deprecated, see below) * LOCALE_PATHS translations (with the ones listed first having higher priority) For the 'djangojs' gettext domain: * Python modules whose names are passed to the javascript_catalog view * LOCALE_PATHS translations (with the ones listed first having higher priority, previously they weren't included) Also, automatic loading of translations from the 'locale' subdir of the settings/project path is now deprecated. Thanks to vanschelven, vbmendes and an anonymous user for reporting issues, to vanschelven, Claude Paroz and an anonymous contributor for their initial work on fixes and to Jannis Leidel and Claude for review and discussion. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15441 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-06Fixed #14711 -- Corrected the calculation for the previous month in generic ↵Russell Keith-Magee
date views. Thanks to msundstr for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15438 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-05Modified wrong expected ClearableFileInput rendering output in a couple of ↵Ramiro Morales
additional tests after fix introduced in [15426]. Refs #14984. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15432 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-05Fixed #15226 - Made SelectDateWidget render the label tag associated with ↵Ramiro Morales
the correct dropdown sub-widget when USE_L10N is active and non-English locale is in use. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15427 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-05Fixed #15167 -- Ensure that non-form errors are always part of an ErrorList. ↵Russell Keith-Magee
Thanks to Harm Geerts for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15424 bcc190cf-cafb-0310-a4f2-bffc1f526a37