Esempio n. 1
0
 def clean(self):
     if any(self.errors):
         return
     super(InterlockAdminForm, self).clean()
     from NEMO import interlocks
     category = self.cleaned_data['card'].category
     interlocks.get(category, False).clean_interlock(self)
Esempio n. 2
0
 def clean(self):
     if any(self.errors):
         return
     super(InterlockCardAdminForm, self).clean()
     category = self.cleaned_data['category']
     from NEMO import interlocks
     interlocks.get(category, False).clean_interlock_card(self)