commit | 6c535b7b626a2a7914f112c7133418189b0ef5a2 | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Tue Mar 29 11:14:38 2016 -0700 |
committer | Scott Baker <smbaker@gmail.com> | Tue Mar 29 11:14:38 2016 -0700 |
tree | b915b5ec481de56515ae5ac9737410250e24f90a | |
parent | 118ea237c052aa125e85164db30879975aa59426 [diff] |
make import_methods fail if djang-rest-framework is too old
diff --git a/xos/api/import_methods.py b/xos/api/import_methods.py index 13502d4..2a6ca57 100644 --- a/xos/api/import_methods.py +++ b/xos/api/import_methods.py
@@ -5,6 +5,11 @@ import inspect import importlib +try: + from rest_framework.serializers import DictField +except: + raise Exception("Failed check for django-rest-framework >= 3.3.3") + urlpatterns = [] def import_module_from_filename(dirname, fn):