* refactors compensation state views for kom, ema, oek * updates tests * refactors before-after state toggling into initialization of NewCompensationStateModalForm
		
			
				
	
	
		
			26 lines
		
	
	
		
			796 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			796 B
		
	
	
	
		
			Python
		
	
	
	
	
	
"""
 | 
						|
Author: Michel Peltriaux
 | 
						|
Organization: Struktur- und Genehmigungsdirektion Nord, Rhineland-Palatinate, Germany
 | 
						|
Contact: ksp-servicestelle@sgdnord.rlp.de
 | 
						|
Created on: 19.08.22
 | 
						|
 | 
						|
"""
 | 
						|
from compensation.models import EcoAccount
 | 
						|
from konova.views.state import AbstractNewCompensationStateView, AbstractEditCompensationStateView, \
 | 
						|
    AbstractRemoveCompensationStateView
 | 
						|
 | 
						|
 | 
						|
class NewEcoAccountStateView(AbstractNewCompensationStateView):
 | 
						|
    _MODEL_CLS = EcoAccount
 | 
						|
    _REDIRECT_URL = "compensation:acc:detail"
 | 
						|
 | 
						|
 | 
						|
class EditEcoAccountStateView(AbstractEditCompensationStateView):
 | 
						|
    _MODEL_CLS = EcoAccount
 | 
						|
    _REDIRECT_URL = "compensation:acc:detail"
 | 
						|
 | 
						|
 | 
						|
class RemoveEcoAccountStateView(AbstractRemoveCompensationStateView):
 | 
						|
    _MODEL_CLS = EcoAccount
 | 
						|
    _REDIRECT_URL = "compensation:acc:detail"
 |