1
0
mirror of https://github.com/django/django.git synced 2025-03-24 08:10:45 +00:00

13418 Commits

Author SHA1 Message Date
Ian Clelland
515cf94b60 [1.5.x] Use new TestCase methods for equality comparisons
Backport of 8d35fd4c327e05b63c72a1c1e9a4a68de4dddcf0 from master
2012-12-24 02:19:16 +00:00
Ian Clelland
5eba053459 [1.5.x] Add assertJSONEqual method to TestCase
Backport of 089d9ca1df43fb36eaa857e2d617a94a82c6b906 from master
2012-12-24 02:18:56 +00:00
Ian Clelland
f2a7b52cfb [1.5.x] Add assertInHTML method to TestCase
Backport of dc704516c240011a9aeda17f631ade35c65cda58 from master
2012-12-24 02:18:06 +00:00
Ramiro Morales
903892be7b [1.5.x] Fixed -- Refactored testing docs.
Thanks Tim Graham for the review and suggestions.

d19109fd37e75ccf29d2ca64370102753dbc7c5b from master.
2012-12-22 12:39:49 -03:00
Claude Paroz
3aba929bcc [1.5.x] Fixed -- 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 -- 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 -- 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 - 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 . Thanks Florian Apolloner for noticing the issue.
2012-12-21 13:36:22 +01:00
Claude Paroz
be10289d03 [1.5.x] Fixed -- 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 -- 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 -- Made models with __iter__ usable in ModelMultipleChoiceField
Thanks to Patryk Zawadzki for the patch.

Backpatch of 3989ce52ef78840eefe01541628daa220191c0ad
2012-12-19 22:56:19 +02:00
Ramiro Morales
470f3eca34 [1.5.x] Added PASSWORD_HASHERS to settings reference document.
abd0f304b162b3120b1c7321fbfc3090e5f3c92c from master.
2012-12-19 15:10:39 -03:00
Tim Graham
034c355118 [1.5.X] Fixed - 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 - 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 - Warned about database side effects in tests.
Thanks jcspray for the suggestion.

Backport of 7df03268a467a9aec9c4c574c85317a738ca33ae from master.
2012-12-18 08:05:12 -05:00
Pablo Recio
6d712e0d66 [1.5.x] Fixed -- 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 -- 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 -- 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 12a96bfa263d514884ef11009913b2f8bb163472
2012-12-17 00:09:05 +02:00
Tim Graham
528483cae2 [1.5.X] Fixed - 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 -- 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 - 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 , and the fix introduced in 27f8129d64292868f6a328f7bf9a1bed67967ff3.

Backport of 9facca28b619ad94680cf07774ee7a377034ca42 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 -- Ensured that login error messages adapt to changes in the User model.
Thanks to un33k for the report.

Backport of 27f8129d64292868f6a328f7bf9a1bed67967ff3 from master.
2012-12-15 22:48:09 +08:00
Russell Keith-Magee
311bd0055d [1.5.X} Fixed -- 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 47e1df896b17aaaa97b73ef64010a7df4ea3d8d6 from master.
2012-12-15 22:47:48 +08:00
Russell Keith-Magee
a7465ee7df [1.5.X] Fixed -- Documented the testing requirements and tools for custom User models.
Thanks to gcc for the report.

Backport of bd414aed01d48339ed02b9714565939536ffbfcb from master.
2012-12-15 22:47:30 +08:00
Russell Keith-Magee
9cf566233b [1.5.X] Fixed -- Documented the behavior of custom managers on abstract models.
This documents the behavior introduced by cc337a74, which is BACKWARDS
INCOMPATIBLE for any attempt to invoke a method on a manager using the
abstract class as the calling class (e.g., AbstractBase.objects.do_something())

Thanks to mhsparks for the report.

Backport of 1b646e656e46909af447056b4f98b9744aae4978 from master.
2012-12-15 22:46:55 +08:00
Tim Graham
084a8e2959 [1.5.X] Fixed - Documented how to run django-admin in a virtualenv on Windows.
Thanks Hourann Bosci for the patch.

Backport of 1e5b0fc4d0 from master
2012-12-15 09:30:46 -05:00
Tim Graham
1af69a240c [1.5.X] Fixed - Added new tutorials to the 1.5 release notes
Backport of b594e4923c from master
2012-12-15 08:30:06 -05:00
Claude Paroz
d196f8f7eb [1.5.X] Removed obsolete contrib.comments upgrade guide
The old comment system was pre-1.0.

Backport of 44815bad6b from master
2012-12-15 08:15:16 -05:00
Tim Graham
c252ed567c [1.5.X] Fixed - Added a testing tutorial.
Thank-you Daniele Procida for the first draft
and shaibi, Aymeric, and others for the reviews.

Backport of b052e6cc95 from master
2012-12-15 08:12:25 -05:00
Ben Longden
0c3e4848b6 [1.5.X] Removed PHP references
Backport of 55a2d5b577 from master
2012-12-14 19:33:48 -05:00
Aymeric Augustin
44e56238d7 [1.5.x] Fixed -- Documented TRANSACTIONS_MANAGED.
Backport of a001f3c.
2012-12-14 21:16:04 +01:00
Claude Paroz
c20c3a20a3 [1.5.x] Fixed -- Provided better error message for get_object_or_404
Thanks Kit Sunde for the report and Brian Holdefehr for the initial
patch.
Backport of 6ed6a18a0 from master.
2012-12-12 22:05:49 +01:00
Tim Graham
8a1b4dbda2 [1.5.X] Fixed - Linked to psycopg in topics/install.txt
Thanks Chris Jerdonek for the suggestion.

Backport of 6cad5f212a from master
2012-12-11 18:45:03 -05:00
Tim Graham
d92d9cf2aa [1.5.X] Fixed - Emphasized database host link in tutorial
Backport of 0eed8ece32 from master
2012-12-11 16:35:37 -05:00
Florian Apolloner
deb205b8ce [1.5.X] Fixed an order dependant test failure.
Backport of 7e97f4f510b2972c867ae7674fc40134413c16ab from master.
2012-12-11 16:26:53 +01:00
Florian Apolloner
919fbe08c9 [1.5.X] Fixed a test failure in the comment tests.
Backport of 1eb0da1c5ba3096f218d1df13d02a2b8e1ac7a36 from master.
2012-12-10 23:36:17 +01:00
James Bennett
82d4786544 [1.5.x] Bump version numbers for security release. 1.5b2 2012-12-10 15:49:48 -06:00
Florian Apolloner
77b06e4151 [1.5.X] Fixed a security issue in get_host.
Full disclosure and new release forthcoming.
2012-12-10 22:13:28 +01:00
Florian Apolloner
fce1fa0f7f [1.5.X] Fixed -- Ensured that redirects can't be poisoned by malicious users. 2012-12-10 22:13:28 +01:00
Claude Paroz
984cf8417b [1.5.x] Amended an SQL test fixture to not include an id value
Some backends might need special handling for auto-increment values.
This was introduced in 5fa5621f574. Thanks Michael Manfre for spotting
the issue.
Backport of 0cdfa76e68 from master.
2012-12-10 17:50:37 +01:00
Aymeric Augustin
d6bad2e9ea [1.5.x] Fixed -- Improved error for old-style url tags with dashes.
Thanks dloewenherz for the report.

Backport of 4951932 from master.
2012-12-09 16:18:52 +01:00
Claude Paroz
fce779475e [1.5.x] Removed US localflavor-specific tests from core
Also fixes .
Backport of 8248d1402 from master.
2012-12-08 21:08:37 +01:00
Aymeric Augustin
c81e8e7068 [1.5.x] Fixed -- Docs on the location of contrib apps tests.
Backport of d5ed81c.
2012-12-08 19:48:41 +01:00
Val Neekman
152d6cb411 fix a spelling error in docs
backport of cacafe8 from master.
2012-12-08 14:51:41 +01:00
Claude Paroz
a155fb7408 [1.5.x] Fixed -- Removed unused template tag library in change_password.html
Thanks ppetrid for the report.
Backport of 35492f8fc from master.
2012-12-08 12:54:22 +01:00
Claude Paroz
fa54604606 [1.5.x] Fixed -- Prevented ModelAdmin sharing widgets due to formfield_overrides
Thanks joebuyer at manycycles.com for the report and Simon Charette
for the review.
Backport of 04e6542b5 from master.
2012-12-08 12:47:33 +01:00