Merge branch 'dev' of ssh://git.auf/auf_rh_dae into dev
[auf_rh_dae.git] / project / dae / forms.py
index 5d03567..105ebdf 100644 (file)
@@ -11,6 +11,17 @@ from rh_v1 import models as rh
 PostePieceForm = inlineformset_factory(dae.Poste, dae.PostePiece)
 DossierPieceForm = inlineformset_factory(dae.Dossier, dae.DossierPiece)
 
+class PosteValidationForm(forms.ModelForm):
+    """ Validation d'un poste"""
+    class Meta:
+        model = dae.Poste
+        fields = (
+            'validation_bureau_regional',
+            'validation_drh',
+            'validation_secretaire_general',
+            'validation_recteur',
+            )    
+
 class PosteForm(forms.ModelForm):
     """ Formulaire des postes. """
     class Meta: