comments member views
This commit is contained in:
parent
f324965f1a
commit
60b1cdbcf8
2 changed files with 61 additions and 34 deletions
|
|
@ -65,6 +65,18 @@ class ProfileForm(forms.ModelForm):
|
|||
exclude = ('user', 'email_confirmed', 'registration_valid', )
|
||||
|
||||
|
||||
class ImageForm(forms.Form):
|
||||
"""
|
||||
Form used for the js interface for profile picture
|
||||
"""
|
||||
image = forms.ImageField(required=False,
|
||||
label=_('select an image'),
|
||||
help_text=_('Maximal size: 2MB'))
|
||||
x = forms.FloatField(widget=forms.HiddenInput())
|
||||
y = forms.FloatField(widget=forms.HiddenInput())
|
||||
width = forms.FloatField(widget=forms.HiddenInput())
|
||||
height = forms.FloatField(widget=forms.HiddenInput())
|
||||
|
||||
class ClubForm(forms.ModelForm):
|
||||
def clean(self):
|
||||
cleaned_data = super().clean()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue