policies: change .form() and .serializer() to properties, add tests
This commit is contained in:
		@ -51,11 +51,13 @@ class EmailStage(Stage):
 | 
			
		||||
 | 
			
		||||
        return EmailStageSerializer
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def type(self) -> Type[View]:
 | 
			
		||||
        from passbook.stages.email.stage import EmailStageView
 | 
			
		||||
 | 
			
		||||
        return EmailStageView
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def form(self) -> Type[ModelForm]:
 | 
			
		||||
        from passbook.stages.email.forms import EmailStageForm
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user