policies: change .form() and .serializer() to properties, add tests

This commit is contained in:
Jens Langhammer
2020-09-29 10:32:41 +02:00
parent 5da4ff4ff1
commit 9724ded194
42 changed files with 188 additions and 7 deletions

View File

@ -103,6 +103,7 @@ class SAMLSource(Source):
on_delete=models.PROTECT,
)
@property
def form(self) -> Type[ModelForm]:
from passbook.sources.saml.forms import SAMLSourceForm