commit | 29087134e7f357ba43b08cf110e4f631b89b4c91 | [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 | 4628b467d0932ba5b26e0313912abf21805dff04 | |
parent | 20189bf02684981ebcb44e332502bb8993c10afb [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):