Skip to content

Simplify inheritance instructions when using CreatedModifiedByMixin #7

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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