summaryrefslogtreecommitdiff
path: root/tests/regressiontests
AgeCommit message (Collapse)Author
2011-09-30Fixed doc references to `django.db.models.query.QuerySet` and converted some ↵Jannis Leidel
tabs that were introduced in r16699 to spaces. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16915 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-27Fixed #13956 -- Enabled `*args` and `**kwargs` support for `simple_tag`, ↵Julien Phalip
`inclusion_tag` and `assignment_tag`. Many thanks to Stephen Burrows for the report and initial patch, to Gregor Müllegger for the initial tests, to SamBull for the suggestions, and to Jannis Leidel for the review and PEP8 cleanup. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16908 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-26Fixed #16925 -- Make sure a signal is disconnected if the test fails. Thanks ↵Alex Gaynor
to aaugustin for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16905 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-25Fixed #16924 -- Corrected `date` template filter handling of negative (West ↵Ramiro Morales
of UTC) timezone offsets. The 'O' format specifier output was incorrect. Thanks mrgriscom and Aymeric Augustin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16903 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-23Fixed #16878 -- Improved intword filter to support numbers up to decillion ↵Jannis Leidel
and googol. Thanks to crodjer for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16897 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-22Fixed #16909 -- Pass language to get_format_modules when calling it from ↵Jannis Leidel
get_format to make sure the correct module is returned. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16884 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-22Fixed #16837 -- Improved error message for admin login.Paul McMillan
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16872 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-21Fixed #16703 -- Raise an exception if the storage location of the ↵Jannis Leidel
DefaultStorageFinder is empty. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16863 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-21Fixed the relative static file resolution of the CachedStaticFilesStorage ↵Jannis Leidel
backend and the post processing of deeply nested static files. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16862 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-21Fixed #16866 -- Clearer error message if empty list is passed to ↵Carl Meyer
select_template. Thanks Silver_Ghost for report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16861 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-21Fixed #16838 -- Corrected broken add-another inline JS in admin with ↵Carl Meyer
related_name="+". Thanks jamesp for report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16860 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-20Converted internal link generation in the admin and admin document generator ↵Ramiro Morales
to use named URLs. Thanks to Florian Apolloner for both the initial patch and his final push to get this fixed, to Dario Ocles for his great work on the admin templates and switching the admin_doc application to also use named URLs, to Mikko Hellsing for his comments and to Jannis and Julien for their review and design guidance. Fixes #15294. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16857 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-20Improved test isolation of the admin tests and assigned custom admin sites toRamiro Morales
prevent test order dependant failures. This involves introducing usage of `TestCase.urls` and implementing proper admin.py modules for some of the test apps. Thanks Florian Apolloner for finding the issue and contributing the patch. Refs #15294 (it solves these problems so the fix for that ticket we are going to commit doesn't introduce obscure and hard to reproduce test failures when running the Django test suite.) git-svn-id: http://code.djangoproject.com/svn/django/trunk@16856 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-18Fixed #16676 -- Corrected the behavior of the 'add' template filter to ↵Julien Phalip
return an empty string instead of the given value unchanged in the case of an invalid use. Thanks to dtrebbien for the report and to Aymeric Augustin for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16851 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-18Fixes #8103 -- Select widget should only allow for one selected optionChris Beaven
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-16Fixed #16568 -- Added RequireDebugFalse filter to prevent sending 500 error ↵Carl Meyer
emails when DEBUG is True in projects with no explicit LOGGING setting. Thanks to Andreas Pelme for report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16840 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-16Fixed #16803 -- Use model verbose_name directly as ContentType unicode ↵Carl Meyer
representation so it can be translated. Thanks to bronger for the report and Ivan Sagalaev for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16839 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-16Fixed #16770 -- Eliminated TemplateSyntaxError wrapping of exceptions. ↵Carl Meyer
Thanks to Justin Myles-Holmes for report and draft patch. Exceptions raised in templates were previously wrapped in TemplateSyntaxError (in TEMPLATE_DEBUG mode only) in order to provide template source details on the debug 500 page. The same debug information is now provided by annotating exceptions rather than wrapping them. This makes catching exceptions raised from templates more sane, as it's consistent in or out of DEBUG, and you can catch the specific exception(s) you care about rather than having to also catch TemplateSyntaxError and unwrap it. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16833 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-14Fixed #16494 by normalizing HttpResponse behavior with non-string input. ↵Paul McMillan
HttpResponse now always converts content to string on output, regardless of input type. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16829 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-13Fixed #16833 -- Removed undocumented `mixin` parameter from the ↵Jannis Leidel
`Storage.open()` method as this was an undocumented and obscure feature. Thanks to Marty and Russell for sanity-checking. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16824 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-11Fixed #14675 -- Completed removal of `from django.conf.urls.default import ↵Ramiro Morales
*` usage. This applies to both our own [test] code and documentation examples. Also: * Moved the functions and handlers from `django.conf.urls.defaults` up to `django.conf.urls` deprecating the former module. * Added documentation for `handler403`. * Tweaked the URLs topic document a bit. Thanks to pupeno and cdestigter for their great work contributing patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16818 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Ensure bulk_create returns the right value if the argument is an empty list.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16792 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Ensure bulk_create returns what it is supposed to.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16791 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Fixed #16809 -- Forced MySQL to behave like a database. This avoids a ↵Russell Keith-Magee
problem where queries that do IS NONE checks can return the wrong result the first time they are executed if there is a recently inserted row. Thanks to James Pyrich for the debug work and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16785 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Fixed #16808, removed some dead code from teh ORM. Thanks to aaugustin for ↵Alex Gaynor
the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16782 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Fixed #16162. Added timeout arg to `DummyCache.set_many`, for compatiblity ↵Alex Gaynor
with other caches. Thanks to aaugustin for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16778 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Fixed #11404. Added ``FormSet.has_changed``, for consistancy with ↵Alex Gaynor
``Form.has_changed``. Thanks to michelts for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16773 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Make ``Formset.__getitem__`` O(1), rather than O(n). If you override ↵Alex Gaynor
``__iter__`` you now need to also override ``__getitem__`` for consistant behavior. Thanks to Carl and Russ for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16770 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Altered the behavior of URLField to avoid a potential DOS vector, and to ↵Russell Keith-Magee
avoid potential leakage of local filesystem data. A security announcement will be made shortly. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16760 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Added protection against spoofing of X_FORWARDED_HOST headers. A security ↵Russell Keith-Magee
announcement will be made shortly. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16758 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Fixed #15722: ensure formsets evaluate to True even if they have no forms. ↵Karen Tracey
Thanks mlavin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16756 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Added two pointless query repeats to work around a known issue with MySQL ↵Russell Keith-Magee
that was causing failures in our test suite. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16753 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Fixes #16664 -- URLField's to_python method fails with ValueError on some ↵Chris Beaven
urls on python 2.7. Based on patch by zigzag. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16752 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Fix and test for cleaning a non-string value in a URLFieldChris Beaven
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16747 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Fixed #7596. Added Model.objects.bulk_create, and make use of it in several ↵Alex Gaynor
places. This provides a performance benefit when inserting multiple objects. THanks to Russ for the review, and Simon Meers for the MySQl implementation. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16739 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Fixed #15237 -- Fixed a typo in specifying UTF-8 encoding in the feed ↵Jannis Leidel
generator and signing tests. Thanks, Aymeric Augustin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16738 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Fixed #16042 -- Use the content types caching in the comments contrib app. ↵Jannis Leidel
Thanks, ptone, Julien Phalip and Thejaswi Puthraya. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16737 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Add a test for the intcomma regression described in #16404/#16562, fixed in ↵Karen Tracey
r16726. Refs #16404. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16736 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Fixed #16780 -- Removed a timing sensitive test from the template test ↵Russell Keith-Magee
suite. Thanks to Alex for the lend of his eyeballs. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16735 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-08Fixed #16721 -- Made sure that blocktrans correctly handles percents (%), ↵Jannis Leidel
even in the plural block. Thanks for the initial patch, Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16730 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-08Fixed #16003 -- Restored compatibility of the admin when using USE_ETAGS. ↵Jannis Leidel
Thanks for the initial patch, pterk. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16729 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-08Fixed #16686 -- Reduced time to wait for cache expiration in a test to ↵Jannis Leidel
alleviate race-condition-y effects. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16728 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-08Fixed #15997 -- Added `list_max_show_all` option to `ModelAdmin` in ↵Jannis Leidel
replacement for a global module level variable. Thanks, jsdalton. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16725 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-08Fixed #16516 -- Relaxed the blocktrans rendering a little by falling back to ↵Jannis Leidel
the default language if resolving one of the arguments fails, raising a KeyError. Thanks, Claude Paroz and Aymeric Augustin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16723 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-04Also copy `__module__` to our dynamically created TestCase subclass when ↵Ramiro Morales
override_settings acts as a class decorator. Otherwise, an error in e.g. a test in tests/modeltests/proxy_model_inheritance/tests.py was being reported as: ERROR: test_table_exists (django.test.utils.ProxyModelInheritanceTests) Refs #16672 and [16650]. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16722 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-02Fixed #16736 -- Enabled the merging of user-supplied arguments to format the ↵Julien Phalip
error emails' subject in `AdminEmailHandler`. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16715 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-30Fixed #16717 -- Added ability to store result of trans template tag in ↵Jannis Leidel
context variable. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16712 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-28Fixed #16202 -- Added a Slovenian localflavor. Thanks to Jure Cuhalev < ↵Julien Phalip
gandalf@owca.info>, Gasper Zejn and Domen Kozar for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16706 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-28Fixed #16716 -- Fixed two small regressions in the development version ↵Julien Phalip
introduced in r16144 where the changelist crashed with a 500 error instead of nicely operating a 302 redirection back to the changelist. The two specific cases were: * a lookup through a non-existing field and apparently spanning multiple relationships (e.g. "?nonexistant__whatever=xxxx"). * a proper list_filter's queryset failing with an exception. In Django 1.3 the queryset was only directly manipulated by the changelist, whereas in 1.4 the list_filters may manipulate the queryset themselves. The fix here implies catching potential failures from the list_filters too. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16705 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-28Repaired an admin list_filter test that wasn't testing anything special.Julien Phalip
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16704 bcc190cf-cafb-0310-a4f2-bffc1f526a37