summaryrefslogtreecommitdiff
path: root/tests/regressiontests
AgeCommit message (Collapse)Author
2011-12-16Fixed #17258 -- Moved `threading.local` from `DatabaseWrapper` to the ↵Julien Phalip
`django.db.connections` dictionary. This allows connections to be explicitly shared between multiple threads and is particularly useful for enabling the sharing of in-memory SQLite connections. Many thanks to Anssi Kääriäinen for the excellent suggestions and feedback, and to Alex Gaynor for the reviews. Refs #2879. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17205 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-15Fixed #16563 - Error pickling request.userLuke Plant
Thanks to zero.fuxor for the report git-svn-id: http://code.djangoproject.com/svn/django/trunk@17202 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-11Fixed #15863 - SimpleCookies are not correctly serialized with the file or ↵Luke Plant
database cache backends Thanks to rakuco for the report and for the tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17200 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-11Fixed #17377 -- Don't depend on a warm cache in ↵Aymeric Augustin
admin_views.UserAdminTest.test_user_permission_performance. Thanks Gregor Müllegger. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17199 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-11Fixed #16632 -- Crash on responses without Content-Type with IE. Thanks juan ↵Aymeric Augustin
for the report and kenth for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17196 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-11Added another `from__future__ import with_statement` missed in r17190.Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17193 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-11Made makemessages leave `'%%'` sequences untouched when extracting ↵Ramiro Morales
translatable literals from blocktrans template tags. This makes it consistent with behavior introduced when fixing #11240 in processing of literal passed to the trans tag to avoid double escaping (i.e. `'%%%%'` sequences in resulting PO files.) Also, cleaned up tests changes from r17190 (removed commented out code and implemented compatibility with Python 2.5.) git-svn-id: http://code.djangoproject.com/svn/django/trunk@17192 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-11Added files missing from commit [17190]Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17191 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-11Fixed #11240 -- Made makemessages i18n command escape % symbols in literals ↵Ramiro Morales
passed to the trans tag. This avoids problems with unintended automatic detection, marking and validation of Python string formatting specifiers performed by xgettext(1)/msgfmt(1) that stem from the fact that under the hood makemessages converts templates to Python code before passing them to xgettext. This also makes it consistent with its behavior on literals passed to the blocktrans tag. Thanks Jannis and claude for reviewing and feedback. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17190 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-09Fixed #16818 -- Fixed ORM bug with many-to-many add() method where it wasn't ↵Adrian Holovaty
committing the change. Thanks, pressureman and kmtracey git-svn-id: http://code.djangoproject.com/svn/django/trunk@17189 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-09Fixed #17348 -- Implemented {% elif %}. Refs #3100.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17187 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-09Fixed copy & paste mistake made in r17183.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17184 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-09Fixed #16683 -- Skip the IPv6 runserver tests if the platform doesn't ↵Jannis Leidel
support it. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17183 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-09Added a test that 'firstof' template filter doesn't auto-escape. cycle tag ↵Adrian Holovaty
already has such a test (cycle20). Refs #10912 git-svn-id: http://code.djangoproject.com/svn/django/trunk@17176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-07Changed BoundField.subwidgets() to return SubWidget objects instead of ↵Adrian Holovaty
rendered strings. This means we can access individual radio buttons' properties in the template (see new docs) git-svn-id: http://code.djangoproject.com/svn/django/trunk@17175 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-07Fixed typo in a test name in form testsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17174 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-07Made BoundFields iterable, so that you can iterate over individual radio ↵Adrian Holovaty
buttons of a RadioSelect in a template git-svn-id: http://code.djangoproject.com/svn/django/trunk@17173 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-03Fixed a couple of typos.Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17166 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-27Removed tests of the globbing feature that was removed at r17158. Refs #16247.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17159 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-27Fixed #16040 -- Preserved scheme, host and port in the test client when ↵Aymeric Augustin
following a redirect. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17157 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-27Fixed #11555 -- Made SessionBase.session_key read-only. Cleaned up code ↵Aymeric Augustin
slightly. Refs #13478. This also removes the implicit initialization of the session key on the first access in favor of explicit initialization. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17155 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-27Renamed the fixtures used by the aggregation tests so they're only loaded by ↵Aymeric Augustin
the tests that use them. Refs #17275. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-26Fixed #17287 -- Prevented LocMemCache.incr/decr from changing key expiry ↵Carl Meyer
time. Thanks Ivan Virabyan for report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17151 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-22Disentangled some parts of the admin ChangeList and ListFilter's internals. ↵Julien Phalip
With this refactoring, the query string lookups are now processed once instead of twice and some bugs (in particular the SimpleListFilter parameter name being mistaken for a model field in some cases) are avoided. Refs #17091. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-22Fixed #17252 -- Fixed a minor regression introduced by the work in #11868, ↵Julien Phalip
where the default sorted columns wouldn't correctly be visually represented in the changelist table headers if those columns referred to non model fields. Thanks to sebastian for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17143 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-21Fixed #16787 -- Restored the ability to {% load %} template tags libraries ↵Aymeric Augustin
within packages. Thanks Ivan Sagalaev for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17133 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-21Fixed #17114 -- Handled integer values 0 and 1 for checkboxes like other ↵Aymeric Augustin
integer values, not like False and True. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17132 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-21Fixed #17268 -- Two failures in the cache tests.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17131 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-20Tweaked the skipping condition for the test introduced in r17128 so that it ↵Aymeric Augustin
works on non-PostgreSQL backends. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17129 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-20Fixed #17062 -- Ensured that the effect of SET TIME ZONE isn't lost when the ↵Aymeric Augustin
first transation is rolled back under PostgreSQL. Thanks Anssi for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17128 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-20Fixed #12073 -- Made `AdminDateWidget` and `AdminTimeWidget` consider ↵Julien Phalip
user-supplied `attrs`. Thanks to elliss for the report and to koenb for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17125 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-20Made the database cache backend, which bypasses the ORM, compatible with ↵Aymeric Augustin
time zone support. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17119 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-19Fixed #15255 -- Ensured createcachetable honors database routers.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17114 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-18Fixed #16753 -- Supported network-path references in the syndication ↵Aymeric Augustin
framework. Thanks cato for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17108 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-18Added support for time zones. Thanks Luke Plant for the review. Fixed #2626.Aymeric Augustin
For more information on this project, see this thread: http://groups.google.com/group/django-developers/browse_thread/thread/cf0423bbb85b1bbf git-svn-id: http://code.djangoproject.com/svn/django/trunk@17106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-17Fixed #17128 -- Fixed a Python 2.5 incompatibility. Thanks, Simon Meers.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17102 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-15Fixed #15912 -- Ensured that `forms.CharField.widget_attrs()` always returns ↵Julien Phalip
a dictionary. Thanks to tsabi and rubyruy for the report and to mmcnickle and prestontimmons for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17096 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-13Refs #17215: Avoid generating 47 leftover tmp dirs during a clean test run.Karen Tracey
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-13Fixed #13640: Avoid generating an exception when a model has an attribute ↵Karen Tracey
named 'evaluate'. Thanks LukaszKorzybski and tobias. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17093 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-13Fixed #17134: Corrected Python 2.5 fallback code for parsing microseconds in ↵Karen Tracey
time values. Thanks aaugustin and jcd. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17092 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-12Fixed #17190 -- Ensured that the `NullBooleanSelect` widget's options get ↵Julien Phalip
lazily localized. Thanks to pennersr for the report and to kenth for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-12Fix #16570: Restore ability to have decimal fields where max_digits equals ↵Karen Tracey
decimal_places. Thanks dcwatson and kenth. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17089 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-11Fixed #16903 -- Added `--no-location` option to the `makemessages` command ↵Julien Phalip
to not write '#: filename:line' comment lines in language files. Thanks to alpar for the suggestion and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17081 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-11Fixed #17197 -- Prevented a locale leakage from an i18n test causing ↵Julien Phalip
collateral failures in the rest of the test suite. Thanks to Florian Apolloner for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17080 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-07Fixed #17125 -- Made it possible to change a `RegexField`'s regular ↵Julien Phalip
expression validator after it has been initialized. Thanks to Claude Paroz for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17076 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-07Fixes #17173 -- Added some extra regression tests for reversing namespaced ↵Chris Beaven
urls with special characters The actual code was already fixed between 1.3.1 and trunk, but more thorough tests are always a good thing. Thanks for the patch, Yann Kaiser. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17075 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-06Fixed #17165 -- Fixed `SelectDateWidget._has_changed()` to work correctly ↵Julien Phalip
with a localized date format. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17071 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-03Fixed #16966 -- Stopped CachedStaticFilesStorage from choking on ↵Jannis Leidel
querystrings and path fragments. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17068 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-02Fixed #16967 -- Made sure CachedStaticFilesStorage repopulates its cache if ↵Jannis Leidel
there was a miss (for example if the cache server went down). git-svn-id: http://code.djangoproject.com/svn/django/trunk@17067 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-01Made the cache locale-dependant when USE_L10N is True, even if USE_I18N is ↵Aymeric Augustin
False. Refs #5691. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17061 bcc190cf-cafb-0310-a4f2-bffc1f526a37