feat: make student card unique per user

This commit is contained in:
imperosol authored and Sli committed 2024-12-15 16:49:24 +01:00
1 parent 3b7e338808
commit 466fe58763
13 files changed
+250 -426

No files matched your search

+1 -3
View File
@@ -50,9 +50,7 @@ class StudentCardForm(forms.ModelForm):
class Meta:
model = StudentCard
fields = ["uid"]
widgets = {
"uid": NFCTextInput,
}
widgets = {"uid": NFCTextInput}
def clean(self):
cleaned_data = super().clean()