Commit Graph

13303 Commits

Author SHA1 Message Date
Markus Zapke-Gründemann 4b2fb7efea [1.5.X] Fixed #19230 -- Extended the handler403 documentation.
Backport of 0546794397 from master.

Added a paragraph on how to use the PermissionDenied exception to create a 403
response and use handler403.
2012-11-03 17:19:26 +01:00
Aymeric Augustin b99707bded [1.5.x] Fixed #19101 -- Decoding of non-ASCII POST data on Python 3.
Thanks Claude Paroz.

Backport of 095eca8 from master.
2012-11-03 13:07:02 +01:00
Ulrich Petri f12fa7750c [1.5.X] Fixed #17549 -- Added a clickable link for URLFields in admin change list.
Backport of ac2052ebc8 from master.
2012-11-03 11:59:16 +01:00
Tim Graham 4a9b3826fd [1.5.X] Fixed #16841 - Documented a couple ModelAdmin methods
* ModelAdmin.get_changelist_form and get_changelist_formset
* InlineModelAdmin.get_formset

Thanks Jordan Reiter for the report.

Backport of 39f5bc7fc3 from master
2012-11-03 05:25:55 -04:00
Preston Holmes 0131da0622 [1.5.x] Deprecated depth kwarg on select_related.
This is the start of a deprecation path for the depth kwarg on
select_related. Removing this will allow us to update select_related so
it chains properly and have an API similar to prefetch_related.

Thanks to Marc Tamlyn for spearheading and initial patch.

refs #16855
2012-11-02 22:03:55 -07:00
Tim Graham 75fb8f433f [1.5.X] Fixed #19120 - Added an example of using ModelAdmin methods for read-only fields.
Thanks Daniele Procida for the patch.

Backport of d1de7596b2 from master
2012-11-02 18:32:43 -04:00
Tim Graham 90af863410 [1.5.X] Fixed #19167 - Added a warning regarding module-level database queries
Thanks Daniele Procida for the patch.

Backport of 07361d1fd6 from master
2012-11-02 18:20:32 -04:00
Tim Graham a738d80dd1 [1.5.X] Cleaned up contrib.admin install instructions.
Thanks Cal Leeming for the patch.
\nBackport of 082fad0b83 from master
2012-11-02 18:05:51 -04:00
Tim Graham ffc649df88 [1.5.X] Fixed #15361 - Documented performance considerations for QuerySet.get()
Thanks mmcnickle for the patch.

Backport of feaf9f279a from master
2012-11-02 17:59:51 -04:00
Florian Apolloner 6b1f73113a [1.5.x] Documented minimal python 3.2 version.
Backport of 0d8432da55 from master.
2012-11-02 10:52:15 +01:00
Aymeric Augustin 71dbc01ad7 Fixed #19225 -- Typo in shortcuts docs.
Thanks SunPowered for the report.
2012-11-02 09:30:31 +01:00
Tim Graham c5d0f49dc2 [1.5.X] Added WizardView.file_storage exception message and docs
Thanks Danilo Bargen for the patch.

Backport of af7ea808d8 from master
2012-11-01 18:02:32 -04:00
Claude Paroz a8c415f844 [1.5.x] Fixed #16678 -- Wrote tests for contrib.redirects app
Thanks Julien Phalip for the report.
Backport of d9213d09db from master.
2012-11-01 19:49:08 +01:00
Tim Graham acab68d8a7 [1.5.X] Fixed #19179 - Added mention of NamedUrlSessionWizard and NamedUrlCookieWizard; thanks Tom for the report.
Backport of ede8a0be05 from master
2012-11-01 08:50:54 -04:00
Tim Graham 958c1d12e5 [1.5.X] Fixed #19216 - Switched to user level installation in apps tutorial.
Thanks Nick Coghlan for the suggestion.

Backport of dd0d2c0be5 from master
2012-10-31 20:02:23 -04:00
Andrew Godwin f1be2c7a81 Fixed #19070 -- urlize filter no longer raises exceptions on 2.7
Thanks to claudep for the patch.
2012-10-31 11:01:39 +00:00
Aymeric Augustin 0dcaddb571 Fixed #17083 -- Allowed sessions to use non-default cache. 2012-10-31 09:51:19 +01:00
Tim Graham 5c7406b236 [1.5.X] Fixed #16671 - Added a tutorial on reuseable apps
Thank-you Katie Miller and Ben Sturmfels for the initial draft,
as well as Russ and Carl for the reviews.

Backport of 08cf54990a from master
2012-10-30 18:41:29 -04:00
Claude Paroz 9c4ddea8e6 [1.5.x] Fixed #19174 -- Fixed capitalization errors in LANG_INFO
Thanks waldeinburg for the report.
Backport of 2f035a9 from master.
2012-10-30 23:07:31 +01:00
Claude Paroz 2f9f211da8 [1.5.x] Prevented file_upload tests to leave files behind
Refs #19206.
Backport of 73245b3 from master.
2012-10-30 22:29:09 +01:00
Claude Paroz a24ffa52d0 [1.5.x] Fixed #17744 -- Reset default file storage with setting_changed signal
Backport of 9a0285134 from master.
2012-10-30 22:26:03 +01:00
Claude Paroz 5229ac20be [1.5.x] Fixed #15714 -- Added note about capitalization of LANG_INFO name_local
Backport of 5dc4437df from master.
2012-10-30 09:31:25 +01:00
Claude Paroz 3f3076edbf [1.5.x] Fixed #5076 -- Properly decode POSTs with non-utf-8 payload encoding
Thanks daniel at blogg.se for the report and Aymeric Augustin for
his assistance on the patch.

Backport of 6de6988f9 from master.
2012-10-30 09:01:57 +01:00
Preston Holmes e8269a6729 [1.5.x] Fixed #17869 - force logout when REMOTE_USER header disappears
If the current sessions user was logged in via a remote user backend log out
the user if REMOTE_USER header not available - otherwise leave it to other auth
middleware to install the AnonymousUser.

Thanks to Sylvain Bouchard for the initial patch and ticket maintenance.
2012-10-29 22:58:36 -07:00
Preston Holmes 402a986c25 [1.5.x] Fixed #19057 (again) -- added additional tests 2012-10-29 22:33:46 -07:00
Russell Keith-Magee e784b5e594 [1.5.X] Added some test guards for some recently added auth tests.
Refs #19061, #19057.
2012-10-30 10:27:01 +08:00
Aymeric Augustin 322d858abe [1.5.x] Fixed #19209 -- Documented |date:"I".
Thanks mitar for the report.

Backport of 24b2aad from master.
2012-10-29 23:13:01 +01:00
Aymeric Augustin a92c7c6e26 [1.5.x] Fixed #19208 -- Docs for mod_wsgi daemon mode
Thanks Graham Dumpleton for the patch.

Backport of bc00075 from master.
2012-10-29 21:40:10 +01:00
Claude Paroz 04717ee9b1 [1.5.x] Prevented leftover files and dirs in admin_scripts tests
Backport of d30516e1 from master.
2012-10-29 19:12:12 +01:00
Claude Paroz 8c556a32f2 [1.5.x] Fixed #19172 -- Isolated poisoned_http_host tests from 500 handlers
Thanks bernardofontes for the report.

Backport of b774c5993 from master.
2012-10-29 17:29:28 +01:00
Luke Plant d7d7ad2881 [1.5.x] Fixed #17991 - prefetch_related fails with GenericRelation and varchar ID field
Thanks to okke@formsma.nl for the report, and carmandrew@gmail.com for the tests.

Backport of ccd14ff25b7642678bf3c9ed8a12643f04853144 from master
2012-10-29 14:41:05 +00:00
Preston Holmes f427ecdc88 [1.5.x] Fixed #19061 -- added is_active attribute to AbstractBaseUser 2012-10-28 23:06:09 -07:00
Claude Paroz b4627bcabe [1.5.x] Fixed #18575 -- Empty DATABASES should default to dummy backend
Thanks delormemarco@gmail.com for the report.

Backport of f1cc2be0c from master.
2012-10-28 23:46:54 +01:00
Aymeric Augustin 95f3f0cbbe [1.5.x] Fixed a typo in aff9b2f.
Thanks void.

Backport of effe96b from master.
2012-10-28 22:36:01 +01:00
Aymeric Augustin 8d7e526229 [1.5.x] Fixed #18964 -- floatformat test passes under py3k
Thanks Russell for the report.

Backport of b4420d9 from master.
2012-10-28 19:58:12 +01:00
Aymeric Augustin 88393357a6 [1.5.x] Marked cookies-based session expiry test as an expected failure.
Refs #19201.

Backport of 58337b3 from master.
2012-10-28 18:04:50 +01:00
Aymeric Augustin 780eaa4779 [1.5.x] Required serializer to use bytes in loads/dumps
loads has no way to tell if it should provide text or bytes to the
serializer; bytes are more reasonnable for a serialized representation,
and are the only option for pickled data.

dumps can perform conversions on the value it receives from the
serializer; but for consistency it seems better to require bytes too.

The current code would cause an exception when loading pickled session
data. See next commit.

Also fixed a bug when checking for compressed data.

Backport of 58a086a from master.
2012-10-28 18:04:21 +01:00
Anssi Kääriäinen f105fbe52b [1.5.x] Fixed #18823 -- Ensured m2m.clear() works when using through+to_field
There was a potential data-loss issue involved -- when clearing
instance's m2m assignments it was possible some other instance's
m2m data was deleted instead.

This commit also improved None handling for to_field cases.

Backpatch of 611c4d6f1c
2012-10-28 17:34:14 +02:00
Aymeric Augustin 13b4d44860 [1.5.x] Reverted unintentional change in aff9b2f.
Backport of 785bf0d from master.
2012-10-28 12:34:24 +01:00
Aymeric Augustin 54b45dfb53 [1.5.x] Fixed #19203 -- Added isolation to a humanize test
Thanks lrekucki for the report.

Backport of aff9b2f from master.
2012-10-28 09:35:04 +01:00
Aymeric Augustin 39082494e6 [1.5.x] Fixed #18194 -- Expiration of file-based sessions
* Prevented stale session files from being loaded
* Added removal of stale session files in django-admin.py clearsessions

Thanks ej for the report, crodjer and Elvard for their inputs.

Backport of 5fec97b from master.
2012-10-28 09:21:56 +01:00
Aymeric Augustin e6b0ee768c [1.5.x] Improved tests introduced in 04b00b6.
These tests are expected to fail for the file session backend because it
doesn't handle expiry properly. They didn't because of an error in the
test setup sequence.

Refs #19200, #18194.

Backport of 882c47c from master.
2012-10-28 09:21:27 +01:00
Aymeric Augustin 845d8408e7 [1.5.x] Added optional kwargs to get_expiry_age/date.
This change allows for cleaner tests: we can test the exact output.

Refs #18194: this change makes it possible to compute session expiry
dates at times other than when the session is saved.

Fixed #18458: the existence of the `modification` kwarg implies that you
must pass it to get_expiry_age/date if you call these functions outside
of a short request - response cycle (the intended use case).

Backport of cd17a24 from master.
2012-10-28 09:20:54 +01:00
Claude Paroz c5da577b9e [1.5.x] Fixed #17787 -- Documented reset caches by setting_changed signal
Backport of fc2681b22 from master.
2012-10-27 22:04:06 +02:00
Florian Apolloner cb2817543f [1.5.x] Removed a redundant colon in the query docs.
Thanks to Berker Peksag for the patch.

Backport of 4f11b7362206224ad876018bba19b7c9a08b7f0b from master.
2012-10-27 21:20:21 +02:00
Dmitry Shevchenko d8bd829215 Missing 'h' in word. 2012-10-27 21:09:52 +02:00
Aymeric Augustin 0fe02feab4 [1.5.x] Fixed #19200 -- Session expiry with cached_db
Also did a little bit of cleanup.

Backport of 04b00b6 from master.
2012-10-27 19:41:12 +02:00
Aymeric Augustin b760503a27 [1.5.x] Fixed #18978 -- Moved cleanup command to sessions.
This removes a dependency of 'core' on 'contrib'.

Backport of 83ba0a9 from master.

This deprecation occurs after the alpha, but it's a prerequisite
for fixing decently #18194 which is a release blocker.
2012-10-27 18:38:32 +02:00
Anssi Kääriäinen 15ea36dfc0 [1.5.x] Ensured gis tests aren't run on non-gis Oracle
Backpatch of b55de81b9e
2012-10-27 19:26:33 +03:00
Anssi Kääriäinen 7cf2858747 [1.5.x] Marked a test as expectedFailure on Oracle
Backpatch of a5152bb646
2012-10-27 19:25:53 +03:00