-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Labels
Description
I get the following error when using implements()
with a Django model.
class InstagramContentSource(ContentSource, implements(IContentSource)):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
Interface
class IContentSource(Interface):
def get_id(self):
pass
Django Model
class ContentSource(models.Model, Logger):
...
Interface Implementation
class InstagramContentSource(ContentSource, implements(IContentSource)):
class Meta:
proxy = True