mirror of
https://github.com/django/django.git
synced 2025-09-16 23:45:38 +00:00
Simplified implementation of collectstatic command.
Since d2e242d16c6dde6f4736086fb38057424bed3edb made isinstance()
calls work correctly on LazyObject, we can simplify the
implementation of is_local_storage added in
7e27885c6e
.
This commit is contained in:
parent
61917aa08b
commit
5c5b266b54
2 changed files with 2 additions and 7 deletions
|
@ -367,7 +367,7 @@ class SimpleLazyObject(LazyObject):
|
|||
|
||||
def __deepcopy__(self, memo):
|
||||
if self._wrapped is empty:
|
||||
# We have to use type(self), not self.__class__, because the
|
||||
# We have to use SimpleLazyObject, not self.__class__, because the
|
||||
# latter is proxied.
|
||||
result = SimpleLazyObject(self._setupfunc)
|
||||
memo[id(self)] = result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue