Skip to content

Commit

Permalink
Move import
Browse files Browse the repository at this point in the history
  • Loading branch information
bintoro committed Oct 31, 2015
1 parent 93b554f commit 860d717
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion schematics/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def __set__(self, instance, value):
"""
Checks the field name against a model and sets the value.
"""
from .types.compound import ModelType
field = instance._fields[self.name]
if all((
value is not None,
Expand Down Expand Up @@ -431,3 +430,6 @@ def __str__(self):

def __unicode__(self):
return '%s object' % self.__class__.__name__


from .types.compound import ModelType

0 comments on commit 860d717

Please sign in to comment.