summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2012-10-13[1.4.x] Fixed #18881 -- Made the context option in {% trans %} and {% ↵Julien Phalip
blocktrans %} accept literals wrapped in single quotes. Thanks to lanyjie for the report.
2012-10-11[1.4.X] Fixed #16817 - Added a guide of code coverage to contributing docs.Tim Graham
Thanks Pedro Lima for the draft patch. Backport of 06f5da3d78 from master
2012-09-15[1.4.X] Fixed #18530 -- Fixed a small regression in the admin filters where ↵Julien Phalip
wrongly formatted dates passed as url parameters caused an unhandled ValidationError. Thanks to david for the report.
2012-09-02[1.4.x] Fixed #17788 -- Added batch_size argument to qs.bulk_create()Anssi Kääriäinen
The qs.bulk_create() method did not work with large batches together with SQLite3. This commit adds a way to split the bulk into smaller batches. The default batch size is unlimited except for SQLite3 where the batch size is limited to 999 SQL parameters per batch. Thanks to everybody who participated in the discussions at Trac. Backpatch of 29132ebdef0e0b9c09e456b05f0e6a22f1106a4f from master (with documentation changes removed).
2012-09-01[1.4.x] Fixed #18212 -- Standardized arguments of GenericIPAddressFieldClaude Paroz
Unlike other model fields, the newly introduced (1.4) GenericIPAddressField did not accept verbose_name and name as the first positional arguments. This commit fixes it. Thanks Dan McGee for the report and the patch. Backport of 306d34873cff2 from master.
2012-07-30[1.4.x] Fixed a security issue in http redirects. Disclosure and new release ↵Florian Apolloner
forthcoming. Backport of 4129201c3e0fa057c198bdefcb34686a23b4a93c from master.
2012-06-04[1.4.x] readd imports deleted in 4d2fddFlorian Apolloner
2012-06-03[1.4.X] Fixed #18379 -- Made the sensitive_variables decorator work with ↵Julien Phalip
object methods.
2012-05-27[1.4.x] Fixed #18135 -- Close connection used for db version checkingMichael Newman
On MySQL when checking the server version, a new connection could be created but never closed. This could result in open connections on server startup. Backport of 4423757c0c50afbe2470434778c8d5e5b4a70925.
2012-05-08[1.4.x] Fixed #17976 -- Made forms.BooleanField pickleable.Aymeric Augustin
Backport of 9350d1d59c1a4e6a9ac246a808f55da35de0df69 from master. This was a regression in Django 1.4. Thanks bronger for the report and claudep for the patch.
2012-04-11[1.4.X] Fixed #18027 -- Removed an HTMLParser test that doesn't raise any ↵Claude Paroz
more in recent Python versions. Thanks Arfever and Anssi Kaariainen for the report and the patch. Backport of r17900 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.4.X@17901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-10[1.4.X] Fixed #18090 -- Applied filters when running prefetch_related ↵Aymeric Augustin
backwards through a one-to-one relation. Backport of r17888 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.4.X@17889 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-09[1.4.X] Fixed #18086 -- Restored '-pk' as the default order in the admin ↵Julien Phalip
changelist. This rectifies a slight change in behavior introduced in Django 1.4 and r17635. Backport of r17881 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.4.X@17882 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-31[1.4.X] Fixed #17972 -- Ensured that admin filters on a foreign key respect ↵Julien Phalip
the to_field attribute. This fixes a regression introduced in [14674] and Django 1.3. Thanks to graveyboat and Karen Tracey for the report. Backport of r17854 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.4.X@17858 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-22Reverted parts of r16963 to fix a regression on the creation of permissions ↵Aymeric Augustin
on proxy models. Refs #17904. Thanks koenb for the report and claudep for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17776 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-22Fixed #17937 -- Avoided an error in the timeuntil filter when it receives a ↵Aymeric Augustin
date object. Thanks Dmitry Guyvoronsky for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17774 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-21Fixed #17920 -- Actually pass the full path of a newly created project or ↵Jannis Leidel
app in the template context as mentioned in the startproject docs. Many thanks to Preston Holmes for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17773 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-19Fixed #17932 -- Tweaked the admin_changelist tests because Oracle doesn't ↵Aymeric Augustin
like columns named 'number'. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17767 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-18Fixed #17931 -- Accepted aware datetimes to set cookies expiry dates. Thanks ↵Aymeric Augustin
jaddison for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17766 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-17Fixed #16138 -- Made FormMixin get_initial return a copy of the 'initial' ↵Claude Paroz
class variable. Thanks hanson2010, wilfred@potatolondon.com and agriffis for their work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17765 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-17Fixed #17828 -- Ensured that when a list filter's `queryset()` method fails, ↵Julien Phalip
it does so loudly instead of getting swallowed by a `IncorrectLookupParameters` exception. This also properly fixes #16705, which hadn't been addressed correctly in [16705]. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17763 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-17Do not unconditionally add extra_tests when testing geodjango.Claude Paroz
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17761 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-17Fixed #17909 - ensure GeoDjango tests have the templates they need. Thanks ↵Carl Meyer
Nate Bragg for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17757 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-17Fixed #17918 - Handle proxy models correctly when sorting deletions for ↵Carl Meyer
databases without deferred constraints. Thanks Nate Bragg for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17756 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-16Reorganized proxy-delete tests for easier addition of new tests. Refs #16128.Carl Meyer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17755 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-16Ensured that some staticfiles tests get properly cleaned up on teardown. ↵Julien Phalip
Thanks to Claude Paroz for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17747 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-15Added a `with_statement` import to a test for Python 2.5 compatibility.Julien Phalip
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17746 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-15Fixed #17838 - prefetch_related fails for GenericForeignKeys when related ↵Luke Plant
object id is not a CharField/TextField Thanks to mkai for the report and debugging, and tmitchell and Przemek Lewandowski for their work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-15Reverted r16386 because it replaced a brittle method with another not lessRamiro Morales
arbitrary method when the test client checks for the presence of the bundled session backends+session middleware combination. We will revisit the issue soon, probably to make these checks even less strict. Refs #7836, #16605 git-svn-id: http://code.djangoproject.com/svn/django/trunk@17739 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-14Tweaked tests from r17702 to run only when using sqlite3 DB(s).Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17733 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-14Added cleanup code to the proxy_model_inheritance tests. Refs #12286, #16329.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17712 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13Fixed #17895 -- Made override_settings send the setting_changed signal both ↵Aymeric Augustin
when a setting is overridden and when it's restored. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17708 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13Fixed #16329 -- Fixed detection of transaction-handling capabilities when ↵Ramiro Morales
all test databases are sqlite3, in-memory. Thanks canassa for the report and agriffis (#17762) and lrekucki (in #17758) for their contribution to the fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17702 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13Fixed #17768 -- Add a comment about an expected failure in generic_views testsClaude Paroz
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17700 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13Fixed #17882 -- Reopened the database connection when a test changes time ↵Aymeric Augustin
zone settings. Thanks brodie for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17699 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13Fixed #10498 (again) -- Made sure the improvements done in r17641 have a ↵Jannis Leidel
smaller impact on speed. Thanks to Anssi Kääriäinen for the patch and Jonas Obrist for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17698 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13Fixed #17857 -- Stopped CachedStaticFilesStorage from creating absolute URLs ↵Jannis Leidel
unnecessarily. Thanks, tgecho. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13Fixed #17865 -- Strip whitespaces from the paths when using the ↵Jannis Leidel
CachedStaticFilesStorage backend. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17696 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13Refs #17876: enhanced new test to actually test underlying function, not ↵Karen Tracey
just ensure trying to use it does not raise an exception. Thanks Przemek Lewandowski. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17695 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-12Fix #17876: Corrected an exception (regression) raised where select_realted ↵Karen Tracey
and only is used on a proxy model. Thanks milosu and charettes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17692 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-12Fixed #17861 -- Took care of special characters when creating the ↵Jannis Leidel
staticfiles storage cache keys. Many thanks to Preston Holmes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17688 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-12Edited some docs and docstrings until [17685]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17686 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-12Fix #17879: Corrected regression in python (inherited by yaml and json) ↵Karen Tracey
serializer that prevented serializing model instances with null FK ref to a model when serializing with natural keys. Thanks danfairs and tmitchell. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17685 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-10Fixed #17327 (again) -- Moved createsuperuser tests added in r17665.Ramiro Morales
In their new location they won't cause multi-db-related errors when users run contrib.auh tests together with their application tests. Thanks brianriley for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17676 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-09Removed executable bits from some files that don't need them.Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17673 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-05Fixed #17830 -- Modified list_filter on DateTimeFields to account for the ↵Aymeric Augustin
new time zone support. Thanks Glenn Washburn for the report and Jannis Leidel for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17670 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-05Added change forgotten in r17668.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17669 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-05Enabled the existing admin Selenium tests to be run with Internet Explorer. ↵Julien Phalip
Note that some tweaks had to be made, in particular as IE7 has limited capabilities regarding CSS selectors. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17666 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-05Fixed #16128 - Correctly cascade-delete proxy models as if they were the ↵Carl Meyer
concrete model class. Thanks xkennyx for the report, and Aymeric Augustin, Claude Paroz, Adam Nelson, jaap3, and Anssi Kääriäinen for work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17664 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-04Fix staticfiles_tests.TestCollectionCachedStorage.test_post_processing so it ↵Karen Tracey
passes on Windows. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17652 bcc190cf-cafb-0310-a4f2-bffc1f526a37