X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/78da723fd43fdaa44f588c0b642ca8f8348b4be0..4c2f395f73a970c302682ad76913b6bb38f70568:/models/fields.py?ds=sidebyside diff --git a/models/fields.py b/models/fields.py index 85c5583..3e43c0f 100644 --- a/models/fields.py +++ b/models/fields.py @@ -92,7 +92,7 @@ class ForeignKeyAttributeDescriptor(AttributeFieldDescriptor): class ManyToManyAttributeDescriptor(AttributeFieldDescriptor): def __set__(self, instance, value): - if isinstance(value, models.QuerySet): + if isinstance(value, models.query.QuerySet): if self.field in instance._removed_attribute_registry: instance._removed_attribute_registry.remove(self.field) instance._added_attribute_registry[self.field] = value