From e049e45698eaf997922dbf2670f216fb0127d5b4 Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Mon, 3 Feb 2020 00:14:58 +0100 Subject: [PATCH] Remove broken check from QSO form The check disallowed having a QSO with any callsign that is also a reference. Obviously the user should also be able to log this kind of QSO, even if it might not make sense. We don't judge. --- contest/forms.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/contest/forms.py b/contest/forms.py index 329ae86..3dcf8d8 100644 --- a/contest/forms.py +++ b/contest/forms.py @@ -93,8 +93,6 @@ class QSOForm(forms.ModelForm): def clean_call(self): data = self.cleaned_data["call"].upper().strip() - if Reference.objects.filter(name=data).count() > 0: - raise forms.ValidationError("Reference already exists") try: CallLogValidator()(data)