|
|
|
@ -101,9 +101,9 @@ class QSOForm(forms.ModelForm):
|
|
|
|
|
raise forms.ValidationError("Number has to be in range of [1, 1000000]")
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
QSO.objects.get(owner=self.user, ownNo=data)
|
|
|
|
|
QSO.objects.get(owner=self.user.id, ownNo=data)
|
|
|
|
|
raise forms.ValidationError("You already logged a QSO with the number %s" % data)
|
|
|
|
|
except:
|
|
|
|
|
except QSO.DoesNotExist:
|
|
|
|
|
return data
|
|
|
|
|
|
|
|
|
|
def clean_otherNo(self):
|
|
|
|
|