This controls whether or not a database level cosntraint is created. This is useful in a few specialized circumstances, but in general should not be used!
exceptAttributeError:# to._meta doesn't exist, so it must be RECURSIVE_RELATIONSHIP_CONSTANT
assertisinstance(to,six.string_types),"%s(%r) is invalid. First parameter to ForeignKey must be either a model, a model name, or the string %r"%(self.__class__.__name__,to,RECURSIVE_RELATIONSHIP_CONSTANT)
else:
@@ -997,13 +998,14 @@ class ForeignKey(RelatedField, Field):