Skip to content

abstract base class supported? #22

@guettli

Description

@guettli

I tried to use an AbstractBase class which uses TypedModel, but this fails:

class AbstractBase(typedmodels.TypedModel):

    class Meta:
        abstract=True
  File "/home/foo_eins_dtg/src/foo/foo/models/config.py", line 64, in <module>
    class AbstractBase(typedmodels.TypedModel):
  File "/home/foo_eins_dtg/lib/python2.7/site-packages/typedmodels/models.py", line 231, in __new__
    if not cls._default_manager:
AttributeError: type object 'AbstractBase' has no attribute '_default_manager'

Is this supported?

All models which inherit from this AbstractBase should have each its own table.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions