from django.forms.models import BaseInlineFormSet
from django.core.mail import send_mail
+from datamaster_modeles.models import Employe, Implantation, Region
from tinymce.widgets import TinyMCE
from captcha.fields import CaptchaField
class Meta:
model = recr.OffreEmploi
+ def __init__(self, *args, **kwargs):
+ super(OffreEmploiForm, self).__init__(*args, **kwargs)
+
def save(self, *args, **kwargs):
kwargs2 = kwargs.copy()
kwargs2['commit'] = False
if date_limite > debut_affectation:
raise forms.ValidationError("La date limite ne peut pas être \
supérieure à la date d'affection.")
-
return cleaned_data
################################################################################