Skip to content

Managers abstract methods should probably raise NotImplementedErrors #56

Description

@timmartin19

This would prevent dumb errors that I tend to make. Like calling the wrong super. E.g.

class MyManager(AlchemyManager):
     model = MyModel

     def create(self, values, *args, **kwargs):
          super(AlchemyManager, self).create(values, *args, **kwargs)
          # Do something else

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions