Skip to content

Simplify inheritance instructions when using CreatedModifiedByMixin #7

@pakal

Description

@pakal

The docs state that a full-featured model should be created like so:

class MyModel(BaseModel, RevisionModelMixin, CreatedModifiedByMixin)

However, there seems to be no used for the abstract BaseModel, just doing this ways seems to work so far, since only RevisionModelMixin inherits from Model. The order of both doesn't seem important either.

class MyRecord(RevisionModelMixin, CreatedModifiedByMixin)

Am I missing something ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions