1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

Allow you to delete the profile picture

This commit is contained in:
korenstin
2024-07-13 17:37:19 +02:00
parent 201d6b114a
commit 925e0f26f5
4 changed files with 28 additions and 18 deletions

View File

@ -138,6 +138,9 @@ class ImageForm(forms.Form):
return cleaned_data
def is_valid(self):
return super().is_valid() or super().clean().get('image') is None
class ClubForm(forms.ModelForm):
def clean(self):