Skip to content

Managers abstract methods should probably raise NotImplementedErrors #56

@timmartin19

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions