Permalink
Browse files

Place add_introspection_rules() outside try code.

  • Loading branch information...
1 parent ccac523 commit 76f7d2a3b5744a4f5ae404fbdfeaa0c70c5ae30a @vdboor vdboor committed Dec 21, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 form_designer/__init__.py
@@ -1,8 +1,9 @@
try:
from south.modelsinspector import add_introspection_rules
+except ImportError:
+ pass
+else:
add_introspection_rules([], ['^form_designer\.pickled_object_field\.PickledObjectField'])
add_introspection_rules([], ['^form_designer\.model_name_field\.ModelNameField'])
add_introspection_rules([], ['^form_designer\.template_field\.TemplateCharField'])
add_introspection_rules([], ['^form_designer\.template_field\.TemplateTextField'])
-except ImportError:
- pass

0 comments on commit 76f7d2a

Please sign in to comment.