Как получить достпут к методам модели из views.py?
Пример:
models.py
class A(models.Model):
...
def spam(self, ...)
...
return spam
views.py
from ... import ...
def tra_la_la(request)
A.spam(...)
unbound method spam() must be called with A instance as first argument (got nothing instead)