I've installed a package in my Django project, let's say pip install somepackage
This package comes with some modified views, so I do:
class MyView(somepackage.CustomView):
...
But there's some method in somepackage.utils
(somepackage.utils.somemethod
) that I need to customize. If this were a method in somepackage.CustomView
I could do:
class MyView(somepackage.CustomView):
def somemethod(...):
...
But it's not.
How can I override that util's method?