Beispiel #1
0
 def clean_id(self):
     if not EVEManager.check_if_character_id_valid(self.cleaned_data['id']):
         raise forms.ValidationError("Supplied character ID is invalid.")
     return self.cleaned_data['id']
Beispiel #2
0
 def clean_id(self):
     if not EVEManager.check_if_alliance_id_valid(self.cleaned_data['id']):
         raise forms.ValidationError("Supplied alliance ID is invalid.")
     return self.cleaned_data['id']