|
|
@@ -12,16 +12,6 @@ class formAzienda(forms.Form):
|
|
|
self.fields['otppassword'] = forms.BooleanField(required=False)
|
|
|
self.fields['cancellaazienda'] = forms.BooleanField(required=False)
|
|
|
|
|
|
- def clean_partitaiva(self):
|
|
|
- print("###### check partitaIVA")
|
|
|
-
|
|
|
- try:
|
|
|
- Azienda.objects.filter(partitaiva = self.data['partitaiva'])
|
|
|
- except Azienda.DoesNotExist as dne:
|
|
|
- return self.data['partitaiva']
|
|
|
-
|
|
|
- raise forms.ValidationError("Partita IVA gia' presente")
|
|
|
-
|
|
|
class formAziendaPermessi(forms.Form):
|
|
|
choices = []
|
|
|
def __init__(self,*args,amministratori=[],permessi=[],**kwargs):
|