policies: change .form() and .serializer() to properties, add tests
This commit is contained in:
@ -29,6 +29,7 @@ class ReputationPolicy(Policy):
|
||||
|
||||
return ReputationPolicySerializer
|
||||
|
||||
@property
|
||||
def form(self) -> Type[ModelForm]:
|
||||
from passbook.policies.reputation.forms import ReputationPolicyForm
|
||||
|
||||
|
||||
Reference in New Issue
Block a user