Commit Graph

13440 Commits

Author SHA1 Message Date
Aymeric Augustin 5097d3c5fa [1.5.x] Fix #19524 -- Incorrect caching of parents of unsaved model instances.
Thanks qcwxezdas for the report. Refs #13839.

Backport of e9c24be.
2012-12-28 23:35:08 +01:00
Aymeric Augustin be4259004f [1.5.x] Fixed #18970 -- Documented know limitations under Python 3.
Backport of 37b3fd2 from master.
2012-12-28 21:44:45 +01:00
Preston Holmes 8d1b190248 [1.5.x] Fixed #19498 -- refactored auth documentation
The auth doc was a single page which had grown unwieldy.
This refactor split and grouped the content into sub-topics.
Additional corrections and cleanups were made along the way.
2012-12-28 11:48:05 -08:00
Aymeric Augustin 3cb87ec605 [1.5.x] Fixed #19525 -- Reverted dcd4383107 and 05d333ba3b.
Refs #9893, #18515.

Thanks Russell for the report.

Backport of db278c3 from master.
2012-12-27 09:43:41 +01:00
Tim Graham fbc06eef1a [1.5.X] Fixed broken links, round 3. refs #19516
Backport of b3a8c9dab8 from master
2012-12-26 19:10:50 -05:00
Aymeric Augustin e2396bf122 [1.5.x] Updated documentation on localflavor translations
to account for the deprecation of django.contrib.localflavor in 1.5.

Refs #19482.
2012-12-26 14:44:57 +01:00
Aymeric Augustin 0c79e5e347 [1.5.x] Fixed #19518 -- Documented the deprecation of localflavor.
Also moved the contrib deprecations at the top of their section and made
minor markup fixes.

Backport of 4500d35 from master.
2012-12-26 14:30:11 +01:00
Claude Paroz 4f67ab6376 [1.5.x] Fixed #16408 -- Re-fixed value conversion with Spatialite backend
Backport of 0907d3c6f from master.
2012-12-26 12:48:27 +01:00
Tim Graham 1c1df12388 [1.5.X] Fixed more broken links. refs #19516
Backport of 9c5a6adf33 from master
2012-12-25 04:46:28 -05:00
Ramiro Morales 8738da03c6 [1.5.x] Updated Python versions supported FAQ entry. 2012-12-24 19:06:57 -03:00
Ramiro Morales 3b32e5cc2d [1.5.x] Expanded tests added when fixing #14529.
To make sure changes in 35d1cd0 don't break anything. Refs #19505.

ad769efa85 from master.
2012-12-24 18:13:38 -03:00
Julien Phalip 3ad34c231b [1.5.x] Fixed #19505 -- A more flexible implementation for customizable admin redirect urls.
Work by Julien Phalip.

Refs #8001, #18310, #19505. See also 0b908b92a2.

35d1cd0b28 from master.
2012-12-24 18:12:13 -03:00
Tim Graham 5489fc47df [1.5.X] Fixed links to DATABASE ENGINE setting. refs #19516
Backport of f56f6cfa58 from master
2012-12-24 15:40:17 -05:00
Aymeric Augustin cd914175c8 [1.5.x] Prevented caching of streaming responses.
The test introduced in 4b278131 accidentally passed because of a
limitation of Python < 3.3.

Refs #17758, #7581.

Backport of 1c8be95 from master.
2012-12-24 20:30:20 +01:00
Florian Apolloner ef98ae2910 [1.5.X] Fixed #19204 -- Replaced python2-style exception syntax.
Thanks to garrison for the report and patch.

Backport of 4a71b84266 from master
2012-12-24 14:06:47 +01:00
Aymeric Augustin 1114d8203e [1.5.x] Fixed a randomly failing test under Python 3.
Refs #17758.

Backport of e8f07f0 from master.
2012-12-24 11:26:38 +01:00
Luke Plant 2164cd00ec [1.5.x] Fixed HTML comparisons of class="foo bar" and class="bar foo" in tests
Refs #17758

Backport of 8bc410b445 from master
2012-12-24 02:21:36 +00:00
Luke Plant 00aea69f06 [1.5.x] Fixed a dependence on set-ordering in tests
Backport of 1ae64e96c1 from master
2012-12-24 02:21:19 +00:00
Luke Plant b362a55969 [1.5.x] Made admin generated changelist URLs independent of dict ordering
Backport of c31c2c92b8 from master
2012-12-24 02:20:32 +00:00
Ian Clelland 5f07d24eaa [1.5.x] Sort HTML attributes on generated forms
Backport of 6b9f130278 from master
2012-12-24 02:20:19 +00:00
Ian Clelland cade3405c0 [1.5.x] Don't rely on dictionary ordering in tests
Backport of b9fc70141a from master
2012-12-24 02:19:53 +00:00
Ian Clelland 95b4f34b5e [1.5.x] Use HTML parser to compare html snippets
Backport of 585aa11d23 from master
2012-12-24 02:19:31 +00:00
Ian Clelland 515cf94b60 [1.5.x] Use new TestCase methods for equality comparisons
Backport of 8d35fd4c32 from master
2012-12-24 02:19:16 +00:00
Ian Clelland 5eba053459 [1.5.x] Add assertJSONEqual method to TestCase
Backport of 089d9ca1df from master
2012-12-24 02:18:56 +00:00
Ian Clelland f2a7b52cfb [1.5.x] Add assertInHTML method to TestCase
Backport of dc704516c2 from master
2012-12-24 02:18:06 +00:00
Ramiro Morales 903892be7b [1.5.x] Fixed #19497 -- Refactored testing docs.
Thanks Tim Graham for the review and suggestions.

d19109fd37 from master.
2012-12-22 12:39:49 -03:00
Claude Paroz 3aba929bcc [1.5.x] Fixed #19509 -- Fixed crypt/bcrypt non-ascii password encoding
Also systematically added non-ascii passwords in hashers test suite.
Thanks Vaal for the report.
Backport of 0dc3fc954 from master.
2012-12-22 16:04:49 +01:00
Aymeric Augustin 9919638137 [1.5.x] Fixed #19468 -- Decoded request.path correctly on Python 3.
Thanks aliva for the report and claudep for the feedback.

Backport of 1e4a27d from master.
2012-12-22 14:45:06 +01:00
Aymeric Augustin db22145afb [1.5.x] Fixed #19487 -- Used str in the test client's WSGI environ.
This regression was introduced by the unicode_literals patch. The WSGI
spec mandates that environ contains native strings.

Backport of d9a0b6a.
2012-12-22 11:06:05 +01:00
Tim Graham 91af9230ad [1.5.X] Fixed #19506 - Remove 'mysite' prefix in model example.
Thanks Mike O'Connor for the report.

Backport of 52a2588df6 from master
2012-12-21 15:53:23 -05:00
Anssi Kääriäinen a0155f3534 [1.5.x] Refactored proxy model skipping in get_default_columns()
The refactoring allows custom subclasses to use different default
columns than the base model.
2012-12-21 20:56:04 +02:00
Claude Paroz 9e7183073f [1.5.x] Added compatibility with legacy message length
Added compatibility code to not break when decoding messages
encoded on pre-1.5 versions.
Refs #19387. Thanks Florian Apolloner for noticing the issue.
2012-12-21 13:36:22 +01:00
Claude Paroz be10289d03 [1.5.x] Fixed #19387 -- Preserved SafeData status in contrib.messages
Thanks Anton Baklanov for the report and the patch.
Backport of e277301c2 from master.
2012-12-21 10:10:21 +01:00
Russell Keith-Magee b7607003a5 [1.5.x] Fixed #19401 -- Ensure that swappable model references are case insensitive.
This is necessary because get_model() checks are case insensitive, and if the swapable check isn't, the
swappable logic gets tied up in knots with models that are partially swapped out.

Thanks to chris@cogdon.org for the report and extensive analysis, and Preston for his work on the draft patch.

Backport of c04c03d from trunk.
2012-12-20 16:14:10 +08:00
Patryk Zawadzki 9892919b0d [1.5.x] Fixed #18172 -- Made models with __iter__ usable in ModelMultipleChoiceField
Thanks to Patryk Zawadzki for the patch.

Backpatch of 3989ce52ef
2012-12-19 22:56:19 +02:00
Ramiro Morales 470f3eca34 [1.5.x] Added PASSWORD_HASHERS to settings reference document.
abd0f304b1 from master.
2012-12-19 15:10:39 -03:00
Tim Graham 034c355118 [1.5.X] Fixed #19470 - Clarified widthratio example.
Thanks orblivion for the suggestion.

Backport of 6534a95ac3 from master
2012-12-18 08:20:51 -05:00
Tim Graham e11bd5c5ac [1.5.X] Fixed #19442 - Clarified that raw SQL must be committed.
Thanks startup.canada for the suggestion.

Backport of 31f49f1396 from master
2012-12-18 08:14:37 -05:00
Tim Graham 2545dc59bf [1.5.x] Fixed #17312 - Warned about database side effects in tests.
Thanks jcspray for the suggestion.

Backport of 7df03268a4 from master.
2012-12-18 08:05:12 -05:00
Pablo Recio 6d712e0d66 [1.5.x] Fixed #19430 -- Added 'license' value to setup.py
Backport of 50fd96497 from master.
2012-12-18 11:51:34 +01:00
Claude Paroz ddea0e0d7e [1.5.x] Fixed #19441 -- Created PostgreSQL varchar index when unique=True
Thanks Dylan Verheul for the report and Anssi Kääriäinen for the
review.
Backport of 55972ee5c from master.
2012-12-18 10:04:47 +01:00
Anssi Kääriäinen 1caa483914 [1.5.x] Fixed #19197 -- fixed convert_values() for nullable numeric fields
Cleaned up the implementation of base convert_values() a little, and
made sure it accepts None as a value for numeric fields.

There are no tests attached. The reason is that not all of the
convert_values() accept None as a value for numeric fields (for example
sqlite3.convert_values()).

The reason the base convert_values() needs to accept None is that this
situation might arise in custom compilers for 3rd party backends. It
is easy to keep the convert_values() working, so lets do that.

Backpatch of 12a96bfa26
2012-12-17 00:09:05 +02:00
Tim Graham 528483cae2 [1.5.X] Fixed #19279 - Clarified order of database setup and Django install.
Thanks colinnkeenan for the suggestion.

Backport of 72a6ac568d from master
2012-12-16 15:46:17 -05:00
Claude Paroz 0bbc7c2b49 [1.5.x] Fixed #19483 -- Improved import error message in contrib.comments
Thanks Valentin Lorentz for the report and the suggested fix.
Backport of ed711c4bd from master.
2012-12-16 21:13:30 +01:00
Tim Graham 53b40d75b7 [1.5.X] Fixed #18718 - Documented django.utils.encoding.filepath_to_uri
Backport of 507c081484 from master
2012-12-16 14:40:10 -05:00
Russell Keith-Magee 06b5f5fcb6 [1.5.X] Corrected tests depending on the error message on the AuthenticationForm.
Refs #19368, and the fix introduced in 27f8129d64.

Backport of 9facca28b6 from trunk.
2012-12-16 07:22:25 +08:00
Claude Paroz 55aae4b863 Updated translation catalog for contrib.auth 2012-12-15 23:27:55 +01:00
Russell Keith-Magee 9534192c10 [1.5.X] Fixed #19368 -- Ensured that login error messages adapt to changes in the User model.
Thanks to un33k for the report.

Backport of 27f8129d64 from master.
2012-12-15 22:48:09 +08:00
Russell Keith-Magee 311bd0055d [1.5.X} Fixed #19412 -- Added PermissionsMixin to the auth.User heirarchy.
This makes it easier to make a ModelBackend-compliant (with regards to
permissions) User model.

Thanks to cdestigter for the report about the relationship between
ModelBackend and permissions, and to the many users on django-dev that
contributed to the discussion about mixins.

Backport of 47e1df896b from master.
2012-12-15 22:47:48 +08:00
Russell Keith-Magee a7465ee7df [1.5.X] Fixed #19472 -- Documented the testing requirements and tools for custom User models.
Thanks to gcc for the report.

Backport of bd414aed01 from master.
2012-12-15 22:47:30 +08:00