Skip to content

TypeError: metaclass conflict with Django #12

@bjorntheart

Description

@bjorntheart

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions