[django/django] d6db48: [1.6.x] Reworked the detection of local storages f...

1 view
Skip to first unread message

GitHub

unread,
Feb 12, 2014, 11:05:38 AM2/12/14
to django-...@googlegroups.com
Branch: refs/heads/stable/1.6.x
Home: https://github.com/django/django
Commit: d6db48e5f6320ec3d76419b67c6a3819f078be5c
https://github.com/django/django/commit/d6db48e5f6320ec3d76419b67c6a3819f078be5c
Author: Loic Bistuer <loic.b...@sixmedia.com>
Date: 2014-02-12 (Wed, 12 Feb 2014)

Changed paths:
M django/contrib/staticfiles/management/commands/collectstatic.py
M tests/staticfiles_tests/tests.py

Log Message:
-----------
[1.6.x] Reworked the detection of local storages for the collectstatic command.

Before 4befb30 the detection was broken because we used isinstance
against a LazyObject rather than against a Storage class. That commit
fixed it by looking directly at the object wrapped by LazyObject.
This could however be a problem to anyone who subclasses the
collectstatic management Command and directly supplies a Storage class.

Refs #21581.

Backport of 7e27885c6e7588471fd94a4def16b7081577bdfc from master.


Reply all
Reply to author
Forward
0 new messages