summaryrefslogtreecommitdiff
path: root/tests/regressiontests
AgeCommit message (Collapse)Author
2012-05-17Fixed #17449 -- Added OPTIONS to generic views.Aymeric Augustin
Thanks estebistec for the report and patch.
2012-05-17Fixed #17535 -- Optimized list generic views.Aymeric Augustin
When allow_empty is False, prevented the view from loading the entire queryset in memory when pagination is enabled.
2012-05-17Fixed #18326 -- Stripped ending chars in LiveServerViews tests.Claude Paroz
Ending chars might be different depending on git crlf setting. Thanks Michael Manfre for the report and the patch.
2012-05-16Fixed #17896 -- Added file_hash method to CachedStaticFilesStorage to be ↵Jannis Leidel
able to customize the way the hashed name of a file is created. Thanks to mkai for the initial patch.
2012-05-14Fixed #10890: added prev/next_week in the contextAymeric Augustin
of per-week date-based generic views. Thanks ee_lars for the report.
2012-05-12Replaced im_func and im_self by __func__ and __self__.Claude Paroz
The new names are Python 3 compatible.
2012-05-12Added missing relative imports in test files.Claude Paroz
2012-05-10Fixed #17798 -- Tweaked the CA localflavor.Aymeric Augustin
Thanks shelldweller.
2012-05-10Replaced foo.next() by next(foo).Claude Paroz
This new syntax for next() has been introduced in Python 2.6 and is compatible with Python 3.
2012-05-09Fix proxy model Query.remove_inherited_models()Anssi Kääriäinen
Fixed #18248 -- proxy models were added to included_inherited_models in sql.query.Query. The variable is meant to be used for multitable inheritance only. This mistake caused problems in situations where proxy model's query was reused.
2012-05-05Replaced cStringIO.StringIO by io.BytesIO.Claude Paroz
Also replaced StringIO.StringIO by BytesIO in some other appropriate places. StringIO is not available in Python 3.
2012-05-05Made more extensive usage of context managers with open.Claude Paroz
2012-05-03Inserted more simplefilter calls to be sure warnings are emitted.Claude Paroz
Thanks to Florian Apolloner for suggesting the patch.
2012-05-03Made warning assertions work with or without -Wall python switchClaude Paroz
2012-05-03Used catch_warnings instead of save/restore methods. Refs #17049.Claude Paroz
2012-05-03Removed unused file from i18n regression tests.Ramiro Morales
2012-05-03Replaced deprecated TestCase methods. Refs #17049.Claude Paroz
2012-05-03Fixed #18042 -- Advanced deprecation warnings.Aymeric Augustin
Thanks Ramiro for the patch.
2012-05-02Merge pull request #28 from akaariai/ticket_18163Karen Tracey
Ticket 18163 - use faster password hasher in tests.
2012-05-01Fixed tests for date-based generic views.Aymeric Augustin
2012-04-30Ensured tests pass using custom PASSWORD_HASHERS.Anssi Kääriäinen
2012-04-30Fixed #4746 -- Allowed spaces around filter separator.Aymeric Augustin
2012-04-30Fixed #18217 -- Time zone support in generic viewsAymeric Augustin
Introduced a distinct implementation depending on the type of the date field (DateField or DateTimeField), and applied appropriate conversions is the latter case, when time zone support is enabled.
2012-04-30Replaced print statement by print function (forward compatibility syntax).Claude Paroz
2012-04-30Fixed SortedDict.__copy__()Anssi Kääriäinen
Fixed #18175 -- Calling SortedDict.__copy__() resulted in changes to the original dictionary. The reason was likely related to subclassing dict. Thanks to linovia for report and patch.
2012-04-30Made get_indexes() consistent across backends.Anssi Kääriäinen
Fixed #15933, #18082 -- the get_indexes() method introspection was done inconsitently depending on the backend. For example SQLite included all the columns in the table in the returned dictionary, while MySQL introspected also multicolumn indexes. All backends return now consistenly only single-column indexes. Thanks to andi for the MySQL report, and ikelly for comments on Oracle's get_indexes() changes.
2012-04-29Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz
Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
2012-04-29Fixed #18023 -- Removed bundled simplejson.Aymeric Augustin
And started the deprecation path for django.utils.simplejson. Thanks Alex Ogier, Clueless, and other contributors for their work on the patch.
2012-04-29Prevent Oracle from changing field.null to TrueAnssi Kääriäinen
Fixed #17957 -- when using Oracle and character fields, the fields were set null = True to ease the handling of empty strings. This caused problems when using multiple databases from different vendors, or when the character field happened to be also a primary key. The handling was changed so that NOT NULL is not emitted on Oracle even if field.null = False, and field.null is not touched otherwise. Thanks to bhuztez for the report, ramiro for triaging & comments, ikelly for the patch and alex for reviewing.
2012-04-29Merge pull request #22 from aviraldg/test_17967Alex Gaynor
Added regression test for #17967. Thanks to aviraldg for the patch!
2012-04-29Fixed some style issues in previous commit.Aviral Dasgupta
2012-04-29Fixed #17992 -- Added a public API for localtime.Aymeric Augustin
Thanks Bradley Ayers for the report.
2012-04-29Simplified QuerySet field.null handlingAnssi Kääriäinen
QuerySet had previously some complex logic for dealing with nullable fields in negated add_filter() calls. It seems the logic is leftover from a time where the WhereNode wasn't as intelligent in handling field__in=[] conditions. Thanks to aaugustin for comments on the patch.
2012-04-29Fixed #17976 -- Made forms.BooleanField pickleable.Aymeric Augustin
This was a regression in Django 1.4. Thanks bronger for the report and claudep for the patch.
2012-04-29Added regression test for #17967.Aviral Dasgupta
2012-04-29Fixed #18224 -- Changed the dev version number.Aymeric Augustin
Following the move from SVN to git.
2012-04-29Fixed #13196 -- Formatting in admin changelists.Aymeric Augustin
Handled values returned by functions more like field values. In particular, localized dates, times and datetimes properly, and converted datetimes to the current timezone.
2012-04-29Made table_names() output sorted.Anssi Kääriäinen
Fixed #18218 -- previously Django's introspection table_names() and get_table_list() methods did not sort the output consistently. This resulted in random order of inspected models. This commit also removed all external usages of get_table_list(). table_names() should be used instead. Thanks to claudep for patch and report.
2012-04-28Removed a svn-specific hack from a test.Aymeric Augustin
2012-04-27Fixed #15076 -- Quoted ForeignKey target class names in inspectdb when class ↵Claude Paroz
is defined below. Thanks saschwarz for the report, jeff@deserettechnology.com for the initial patch and Ramiro Morales for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17942 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-26Removed unneeded deprecation warning silencing in test suite.Claude Paroz
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17940 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-26Removed deprecated gender check in cz localflavor. Refs #14593.Claude Paroz
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17939 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-25Fixed #18033 -- Removed function-based generic views, as per official ↵Claude Paroz
deprecation timeline. Rest in peace! Thanks Anssi Kääriäinen for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-24Removed some leftover references to old-syntax ssi template tag tests. Refs ↵Claude Paroz
#18037. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17935 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-24Fixed #18037 -- Changed behaviour of url and ssi template tags to the new ↵Claude Paroz
syntax, as per official deprecation timeline. Thanks Ramiro Morales and Jannis Leidel for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17934 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-24Fixed #17653 -- Changed MySQL backend to raise a ValueError if zero is used ↵Anssi Kääriäinen
as an AutoField value. Thanks to Sylvain Lebon for the report, krzysiumed for the patch and charettes and claudep for reviews. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17933 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-24Fixed #16961 -- Skipped resetting AUTO_INCREMENT fields for MySQL if the ↵Anssi Kääriäinen
server version is greater than 5.0.12. This allows for much faster testing. Thanks to aigarius for the report and claudep and ramiro for review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17932 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-24Fixed #17954 -- Fixed dependency checking for test databases. Thanks Łukasz ↵Claude Paroz
Rekucki for the report and the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17931 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-22Ignore .svn directories in the folders test from [17925]. This is what ↵Alex Gaynor
happens when you use git-svn. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17926 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-22Fixed #5893 -- Added a flag to FilePathField to allow listing folders, in ↵Alex Gaynor
addition to regular files. Thank you to Brian Rosner, for encouraging me to first contribute to Django 4 years ago. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17925 bcc190cf-cafb-0310-a4f2-bffc1f526a37