Skip to content

Commit

Permalink
Merge pull request #2 from paxnovem/deconstruct
Browse files Browse the repository at this point in the history
Added deconstructible decorator
  • Loading branch information
kevin-brown committed Jul 1, 2015
2 parents 5ff6f03 + 367105c commit 8173b82
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions azure_storage/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
from django.core.files.storage import Storage
from django.conf import settings

try:
from django.utils.deconstruct import deconstructible
except ImportError:
#Support for django 1.7 and below
def deconstructible(func):
return func


@deconstructible
class AzureStorage(Storage):
"""
Custom file storage system for Azure
Expand Down

0 comments on commit 8173b82

Please sign in to comment.