1
0
mirror of https://github.com/django/django.git synced 2025-03-14 19:30:46 +00:00

8440 Commits

Author SHA1 Message Date
Anssi Kääriäinen
f4132140f5 [1.5.x] Fixed #19652 -- Fixed .none() regression in related fields
The regression was caused by using .none() when querying for related
models, and the origin field's value was None. This resulted in missing
custom related manager subclass as .none() returns plain QuerySet.

This isn't backport from master, in master .none() correctly preserves
the queryset's class.

Patch provided by Simon Charette, with some minor polish by committer.
2013-01-23 08:26:34 +02:00
Tim Graham
dc0bf53276 [1.5.x] Fixed #19477 - Documented generic_inlineformset_factory
Thanks epicserve for the suggestion.

Backport of 214fb700b9 from master
2013-01-22 18:18:32 -05:00
Florian Apolloner
5f3c45f745 [1.5.X] Fixed #19596 -- Use _default_manager instead of objects in the auth app.
This is needed to support custom user models which don't define a manager
named `objects`.

Backport of cc4de61a2b36abf418d6f4c720d9e62c405e0612 from master.
2013-01-22 12:50:40 +01:00
Jani Tiainen
457290326f [1.5.x] Fixed #19606 -- Adjusted cx_Oracle unicode detection.
Backpatch of d194f290571f7e9dda7d2fd7a6f2b171120f2f14
2013-01-19 09:43:26 +02:00
Claude Paroz
1e95d5ba82 Updated contrib apps translations 2013-01-15 17:30:18 +01:00
Claude Paroz
3f9ab5209f Updated localflavor translations 2013-01-15 17:30:18 +01:00
Claude Paroz
321a6da0d4 Updated core translations 2013-01-15 17:30:17 +01:00
Claude Paroz
5a53f1043c [1.5.x] Fixed #19092 -- Completed Lithuanian date/time formats
Thanks Tadas Dailyda for the report and the patch.
Backport of 2f8ab2f1b0 from master.
2013-01-15 13:49:21 +01:00
Stephan Jaekel
fb130cb40e [1.5.x] Fixed #18026 -- Don't return an anonymous dict if extra_data in storage is empty.
Backport of 97121cb9 from master.
2013-01-12 15:51:15 +01:00
Claude Paroz
b3887ab98a [1.5.x] Fixed #19488 -- Made i18n_patterns redirect work with non-slash-ending paths
Thanks Daniel Gerzo for the report and the initial patch.
Backport of bcdb4898c from master.
2013-01-11 21:35:45 +01:00
Claude Paroz
1d03ff06bb [1.5.x] Fixed #19585 -- Fixed loading cookie value as a dict
This regression was introduced by the 'unicode_literals' patch.
Backport of f08e739bc2 from master.
2013-01-11 21:14:39 +01:00
Tim Graham
c94fcc4117 [1.5.x] Fixed #10239 - Added docs for modelform_factory
Thanks ingenieroariel for the suggestion and slurms for the review.

Backport of 71d76ec011 from master
2013-01-11 06:01:19 -05:00
Nick Sandford
b4544dbd5b [1.5.x] Fixed #19573 -- Allow override of username field label in AuthenticationForm
Backport of cdad0b28d from master.
2013-01-10 09:07:06 +01:00
Preston Holmes
af8e858c15 [1.5.x] Fixed #19546 - ensure that deprecation warnings are shown during tests
refs #18985
2013-01-09 08:19:56 -08:00
Simon Charette
78739faedb [1.5.x] Fixed #19576 -- Use six.with_metaclass uniformously accross code base.
Backport of f58efd07f from master.
2013-01-08 20:16:14 +01:00
Anssi Kääriäinen
9d6d0de7c1 [1.5.x] Fixed #17541 -- Fixed non-saved/nullable fk querying
Backpatch of 55da775ce1bfba20db33b56c29957faa63917980
2013-01-08 21:03:53 +02:00
Claude Paroz
beef02eeaa [1.5.x] Updated deprecated test assertions 2013-01-08 19:11:40 +01:00
Claude Paroz
012229914c [1.5.x] Created special PostgreSQL text indexes when unique is True
Refs #19441.
Backport of c698c55966 from master.
2013-01-07 21:02:02 +01:00
James Bennett
f23d3ce8d4 [1.5.x] Bump version numbers for 1.5 RC 1. 2013-01-04 12:49:58 -06:00
Claude Paroz
96301d21bb [1.5.x] Fixed #19192 -- Allowed running tests with dummy db backend
Thanks Simon Charette for the initial patch, and Jan Bednařík for
his work on the ticket.
Backport of b740da3504 from master.
2013-01-04 14:03:55 +01:00
Claude Paroz
b641357a37 [1.5.x] Replaced deprecated sslerror by ssl.SSLError
The exact conditions on which this exception is raised are not
known, but this replacement is the best guess we can do at this
point.
Backport of 850630b4b7 from master.
2013-01-03 22:17:30 +01:00
Claude Paroz
5b8c0d22cc [1.5.x] Fixed #19382 -- Stopped smtp backend raising exception when already closed
Thanks Sebastian Noack for the report and the initial patch.
Backport of ffa50ca35 from master.
2013-01-03 20:45:57 +01:00
Claude Paroz
4081042ef5 [1.5.x] Fixed #19134 -- Allowed closing smtp backend when the server is stopped
Thanks Sebastian Noack for the report and the initial patch.
Backport of 1b3f832ab7 from master.
2013-01-03 20:45:29 +01:00
Claude Paroz
a893ee3315 Fixed #19426 -- Adapted EmptyQuerySet.distinct signature
1.5-only change, as EmptyQuerySet will be refactored in 1.6.
Thanks hongshuning@gmail.com for the patch.
2013-01-03 18:03:51 +01:00
Simon Charette
70cc95d1cc [1.5.x] Fixed #19545 -- Make sure media/is_multipart work with empty formsets
Backport of 3fc43c964e from master.
2013-01-03 15:17:14 +01:00
Aymeric Augustin
056ace0f39 [1.5.x] Fixed #19547 -- Caching of related instances.
When &'ing or |'ing querysets, wrong values could be cached, and crashes
could happen.

Thanks Marc Tamlyn for figuring out the problem and writing the patch.

Backport of 07fbc6a.
2013-01-02 22:22:14 +01:00
Claude Paroz
fff9752cb3 [1.5.x] Removed unusable parameters to empty_form property
Backport of 884f77bd1 from master.
2013-01-01 21:02:33 +01:00
Claude Paroz
3f2f50699e [1.5.x] Updated translation catalogs for core and admin 2013-01-01 16:13:37 +01:00
Aymeric Augustin
56e5472766 [1.5.x] Fixed #19519 again -- Regression in LiveServerTestCase after fd1279a4.
Backport of 328f5b5.
2013-01-01 10:14:24 +01:00
Julien Phalip
dfd8623de4 [1.5.x] Fixed #19453 -- Ensured that the decorated function's arguments are obfuscated in the @sensitive_variables decorator's frame, in case the variables associated with those arguments were meant to be obfuscated from the decorated function's frame.
Thanks to vzima for the report.
Backport of 9180146d21cf2a31eec
2012-12-31 09:51:13 -08:00
Aymeric Augustin
fd1279a44d [1.5.x] Fixed #19519 -- Fired request_finished in the WSGI iterable's close().
Backport of acc5396.
2012-12-31 12:49:10 +01:00
Aymeric Augustin
ac72782e61 [1.5.x] Fixed #16241 -- Ensured the WSGI iterable's close() is always called.
Thanks Graham Dumpleton for the report.

Backport of a53c474.
2012-12-31 12:48:43 +01:00
Claude Paroz
814c3b2e2a [1.5.x] Fixed #19537 -- Made CheckboxInput._has_changed handle 'False' string
Thanks dibrovsd@gmail.com for the report.
Backport of d11038acb2 from master.
2012-12-31 10:24:48 +01:00
Julien Phalip
fa71536129 [1.5.x] Added further flexibility to ModelAdmin for controlling post-save redirections.
Refs #19505.
Backport of cee40c7d79930ff42bde4
2012-12-30 23:11:58 -08:00
Anssi Kääriäinen
e871e02178 [1.5.x] Made gis get_default_columns mirror changes in normal compiler
The copy-pasted part of gis compiler's get_default_columns wasn't
changed to match changes in a0155f35343afbfd9e98ab9aa4615f06780f697e.
2012-12-30 12:22:26 +02:00
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
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
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
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 0b908b92a2ca4fb74a103e96bb75c53c05d0a428.

35d1cd0b28d1d9cd7bffbfbc6cc2e02b58404415 from master.
2012-12-24 18:12:13 -03: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 4a71b842662162e0892a9269179421ff2191adba from master
2012-12-24 14:06:47 +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 8bc410b44536e03ee38a0087256faf367dd98dd9 from master
2012-12-24 02:21:36 +00:00
Luke Plant
b362a55969 [1.5.x] Made admin generated changelist URLs independent of dict ordering
Backport of c31c2c92b8ef0b58394ac55fa4f61acc07091047 from master
2012-12-24 02:20:32 +00:00
Ian Clelland
5f07d24eaa [1.5.x] Sort HTML attributes on generated forms
Backport of 6b9f130278f98b3a15f7ad1959269c200e084f03 from master
2012-12-24 02:20:19 +00:00
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
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