diff options
| author | Tom Christie | 2013-09-25 09:44:26 +0100 | 
|---|---|---|
| committer | Tom Christie | 2013-09-25 09:44:26 +0100 | 
| commit | 21cd6386593aea0b122abec1c5cc3bd5c544aa87 (patch) | |
| tree | b7d197c9c04f56448bee36c4789c93c66fb541a8 /rest_framework/compat.py | |
| parent | 9a5b2eefa92dede844ab94d049093e91ac98af5b (diff) | |
| parent | e8c6cd5622f62fcf2d4cf2b28b504fe5ff5228f9 (diff) | |
| download | django-rest-framework-21cd6386593aea0b122abec1c5cc3bd5c544aa87.tar.bz2 | |
Merge master
Diffstat (limited to 'rest_framework/compat.py')
| -rw-r--r-- | rest_framework/compat.py | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/rest_framework/compat.py b/rest_framework/compat.py index 66be96a6..1238f043 100644 --- a/rest_framework/compat.py +++ b/rest_framework/compat.py @@ -47,6 +47,12 @@ try:  except ImportError:      django_filters = None +# guardian is optional +try: +    import guardian +except ImportError: +    guardian = None +  # cStringIO only if it's available, otherwise StringIO  try: | 
