On réduit la taille de la page de modifs

This commit is contained in:
Tom Hubrecht 2021-02-06 00:32:47 +01:00
parent f5c2fed71f
commit cf7397476e
2 changed files with 4 additions and 6 deletions

View file

@ -33,10 +33,10 @@ class SearchForm(forms.Form):
raise forms.ValidationError(_("Tous les champs sont vides"), code="invalid")
PhoneFormSet = inlineformset_factory(Profile, Phone, exclude=[])
PhoneFormSet = inlineformset_factory(Profile, Phone, exclude=[], extra=0)
SocialFormSet = inlineformset_factory(Profile, Social, exclude=[])
SocialFormSet = inlineformset_factory(Profile, Social, exclude=[], extra=0)
MailFormSet = inlineformset_factory(Profile, Mail, exclude=[])
MailFormSet = inlineformset_factory(Profile, Mail, exclude=[], extra=0)
AddressFormSet = inlineformset_factory(Profile, Address, exclude=[])
AddressFormSet = inlineformset_factory(Profile, Address, exclude=[], extra=0)

View file

@ -32,8 +32,6 @@
<a href="{{ form.instance.picture.url }}">
<img src="{{ form.instance.picture.url }}">
</a>
{% else %}
<img>
{% endif %}
</div>
<div class="photo-edit-controls">