summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2012-09-07Fixed #18916 -- Allowed non-ASCII headers.Aymeric Augustin
Thanks Malcolm Tredinnick for the review.
2012-09-07Fixed #12397 -- allow safe_join to work with the root file system path, ↵Alex Gaynor
which means you can have your root template or file upload path at this location. You almost certainly don't want to do this, except in *very* limited sandboxed situations.
2012-09-07Merge branch 'master' into schema-alterationAndrew Godwin
2012-09-07Add check constraint support - needed a few Field changesAndrew Godwin
2012-09-07Removed another usage of the bear "except:" (rawr!).Alex Gaynor
2012-09-07Removed many uses of bare "except:", which were either going to a) silence ↵Alex Gaynor
real issues, or b) were impossible to hit.
2012-09-07Add M2M repointingAndrew Godwin
2012-09-07Fixed #17888 -- no longer silence exceptions inside of check_test. Thanks to ↵Alex Gaynor
brutasse for the patch.
2012-09-07Fixed tests that I broke a few commits ago.Alex Gaynor
2012-09-07Cleaned up several test cases, to better isolate state.Alex Gaynor
2012-09-07Repoint ForeignKeys when their to= changes.Andrew Godwin
2012-09-07[py3k] Silence many warnings while running the tests.Alex Gaynor
2012-09-07Added SQLite backend which passes all current testsAndrew Godwin
2012-09-07Cleaned up some small bits of the ORM, including removing an import *.Alex Gaynor
2012-09-05Fixed #18687: Removed test_performance_scalabilityAymeric Augustin
Even after repeated adjustment of the constants, this test still fails randomly. It has educated us to ignore messages from Jenkins, to a point where we missed some actual failures. In addition, it accounts for a non-negligible percentage of the run time of the test suite just by itself. Since no one has proposed a convincing patch in months, I'm going to remove the patch. We can't keep a randomly failing test forever.
2012-09-05Merge branch 'master' into schema-alterationAndrew Godwin
2012-09-04Implement primary key changingAndrew Godwin
2012-09-04Fixed #18824 -- Allow deleting a setting from overriden settingsClaude Paroz
2012-09-04Fixed #18902 -- Made force_bytes properly handle exception inputClaude Paroz
Thanks Aymeric Augustin for the report and the initial patch.
2012-09-01Fixed #17892 -- Do not include whole RegexURLPattern lists in ↵Claude Paroz
RegexURLResolver repr Thanks milosu for the report and the initial patch.
2012-09-01Fixed #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.
2012-08-30db_index alteration mostly workingAndrew Godwin
2012-08-30Fixed #5725 -- Fixed varchar column size introspection for MySQLClaude Paroz
Thanks ferdonline for the initial patch and Karen Tracey for the related post on django-users.
2012-08-29Made FileSystemStorage accept both text and byte streamsClaude Paroz
Thanks Alexey Boriskin for his help on the patch.
2012-08-29Removed unnecessary bytes prefix for ContentFileClaude Paroz
2012-08-29Fixed #11739 -- Made ContentFile support Unicode inputClaude Paroz
2012-08-29Replaced many smart_bytes by force_bytesClaude Paroz
In all those occurrences, we didn't care about preserving the lazy status of the strings, but we really wanted to obtain a real bytestring.
2012-08-29[py3] Fixed test failures introduced in ↵Florian Apolloner
3afb5916b215c79e36408b729c9516bc435f5cb7.
2012-08-28Fixed #18091 -- Non-ASCII templates break `django-admin.py startproject ↵Florian Apolloner
--template=TEMPLATE`. Thanks to Claude Huchet and Tomáš Ehrlich for the patch.
2012-08-26Made model instance history admin view link not hard-coded. Refs #15294.Ramiro Morales
2012-08-25Fixed #18852 -- Restored backwards compatibilityAymeric Augustin
in django.core.signing. Specifically, kept the same return types (str/unicode) under Python 2. Related to [92b2dec918].
2012-08-25Fixed #16715 -- Fixed join promotion logic for nested nullable FKsAnssi Kääriäinen
The joins for nested nullable foreign keys were often created as INNER when they should have been OUTER joins. The reason was that only the first join in the chain was promoted correctly. There were also issues with select_related etc. The basic structure for this problem was: A -[nullable]-> B -[nonnull]-> C And the basic problem was that the A->B join was correctly LOUTER, the B->C join not. The major change taken in this patch is that now if we promote a join A->B, we will automatically promote joins B->X for all X in the query. Also, we now make sure there aren't ever join chains like: a LOUTER b INNER c If the a -> b needs to be LOUTER, then the INNER at the end of the chain will cancel the LOUTER join and we have a broken query. Sebastian reported this problem and did also major portions of the patch.
2012-08-23Fixed #18843 -- Replaced more special chars in column names (inspectdb)Claude Paroz
Thanks airstrike for the report.
2012-08-23Fixed #12460 -- Improved inspectdb handling of special field namesClaude Paroz
Thanks mihail lukin for the report and elijahr and kgibula for their work on the patch.
2012-08-23Fixed #18798 -- Renamed conflicting test methods in i18n testsAlexey Boriskin
2012-08-23Fixed #18678 -- HttpResponse init arguments allowed for subclassesClaude Paroz
Thanks hp1337@gmail.com for the report.
2012-08-22Fixed #11340 -- Prevented HttpResponseNotModified to have content/content-typeClaude Paroz
The HTTP 1.1 spec tells that the 304 response MUST NOT contain a message body. Thanks aparajita for the report.
2012-08-22Revert "Fixed #18063 -- Avoid unicode in Model.__repr__ in python 2"Simon Meers
This reverts commit 3fce0d2a9162cf6e749a6de0b18890dea8955e89.
2012-08-21Fixed #18196 -- Improved loaddata error messages.Claude Paroz
2012-08-21Fixed #17886 -- Fixed join promotion in ORed nullable queriesAnssi Kääriäinen
The ORM generated a query with INNER JOIN instead of LEFT OUTER JOIN in a somewhat complicated case. The main issue was that there was a chain of nullable FK -> non-nullble FK, and the join promotion logic didn't see the need to promote the non-nullable FK even if the previous nullable FK was already promoted to LOUTER JOIN. This resulted in a query like a LOUTER b INNER c, which incorrectly prunes results.
2012-08-21Reverted type check added in 62954ba04c.Aymeric Augustin
Refs #17040.
2012-08-20[py3] Fixed #17040 -- ported django.utils.crypto.constant_time_compare.Aymeric Augustin
This is a private API; adding a type check is acceptable.
2012-08-20Fixed #18063 -- Avoid unicode in Model.__repr__ in python 2Simon Meers
Thanks guettli and mrmachine.
2012-08-19Reordered import statements for clarity.Aymeric Augustin
2012-08-19Fixed #18728 -- Made colon optional in tzinfoAymeric Augustin
Made two-digit hours and minutes mandatory in tzinfo (the code used to crash if a one-digit representation was provided). Added standalone tests for django.utils.dateparse.
2012-08-19[py3] Supported integers in HttpResponseAymeric Augustin
Fixed #18764.
2012-08-18Merge pull request #291 from uruz/ticket18793Karen Tracey
Fixed #18793: Removed duplicate test_head_no_get in generic_views.base Thanks uruz.
2012-08-19Fixed #18793: Duplicate test test_head_no_get in generic_views.baseAlexey Boriskin
2012-08-18Merge pull request #288 from mjtamlyn/date-list-periodAndrew Godwin
Fixed #3542 -- Add support for changing granularity on ArchiveView.
2012-08-18Fixed #3542 -- Add support for changing granularity on ArchiveView.Marc Tamlyn
Resolving the concept from a very old ticket in a more class-based-view manner.