summaryrefslogtreecommitdiff
path: root/tests/regressiontests
AgeCommit message (Collapse)Author
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.
2012-08-18[py3] Made 212b9826bd Python 3-friendlyAymeric Augustin
2012-08-18Fixed #17228 -- params context variable is inconsistentMarc Tamlyn
Remove the params variable from the context and just put the variables in directly. This had not been committed previously as the original pattern was used in the functional generic views and we wanted consistency between them, but django.views.generic.simple.direct_to_template is now gone so we can do it 'right'.
2012-08-18Fixed #14516 -- Extract methods from removetags and slugify template filtersMarc Tamlyn
Patch by @jphalip updated to apply, documentation and release notes added. I've documented strip_tags as well as remove_tags as the difference between the two wouldn't be immediately obvious.
2012-08-18Fixed #16744 -- Class based view should have the view object in the contextMarc Tamlyn
Updated the most recent patch from @claudep to apply again and updated the documentation location.
2012-08-18[py3] Ported django.utils.safestring.Aymeric Augustin
Backwards compatibility aliases were created under Python 2.
2012-08-18Fixed #18779 -- URLValidator can't validate url with ipv6.Marc Tamlyn
Validation is reasonably 'soft', as for the ipv4. False positives don't matter too much here.
2012-08-18[py3] Stopped attempting to translate bytes.Aymeric Augustin
That goes actively against the goal of cleaning string handling.
2012-08-18Cleaned up a test slightly.Aymeric Augustin
We should catch all exceptions in the thread to ensure it doesn't die with an unhandled exception. The type of the exception is already checked further in the test.
2012-08-18[py3] Fixed templates tests.Aymeric Augustin
2012-08-17[py3] Fixed __unicode__ methods missed in d4a0b278Aymeric Augustin
due to non-standard syntax (a stray comma). Thanks dmishe for the report.
2012-08-16[py3k] Fixed pagination_regress tests.Alex Gaynor
2012-08-16[py3] Ported django.core.servers.Aymeric Augustin
2012-08-16[py3] Fixed test_utils tests of doctests.Aymeric Augustin
2012-08-15Fixed the generic_inline_admin tests for python3.Alex Gaynor
2012-08-15Fixed the admin_changelist tests for python3.Alex Gaynor
2012-08-15[py3] Fixed more encoding issues in cache testsClaude Paroz
2012-08-15Used settings config for memcached tests.Claude Paroz
By using settings config, we take advantage of custom settings like KEY_PREFIX which allows for example to run tests in parallel.
2012-08-15[py3] Fixed middleware tests.Aymeric Augustin
Removed several inappropriate .encode('utf-8') calls in the process.
2012-08-15[py3] Fixed dispatch testsClaude Paroz
2012-08-15Run memcache tests if any cache is configuredClaude Paroz
2012-08-15[py3] Fix some more encoding issues in testsClaude Paroz
2012-08-15[py3] Fixed bad unicode testClaude Paroz
2012-08-15[py3] Properly encode hashlib.md5 and zip.compress args in the tests.Florian Apolloner
2012-08-15Ensured that the archive module consistantly explicitly closed all files.Alex Gaynor
2012-08-15Close files in the module_loading tests always.Alex Gaynor
2012-08-15Explicitly close a file during the email tests.Alex Gaynor