From cf7397476e908a078c639c8791a7fd2c34d355d6 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Sat, 6 Feb 2021 00:32:47 +0100 Subject: [PATCH] =?UTF-8?q?On=20r=C3=A9duit=20la=20taille=20de=20la=20page?= =?UTF-8?q?=20de=20modifs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fiches/forms.py | 8 ++++---- fiches/templates/fiches/fiches_modif.html | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/fiches/forms.py b/fiches/forms.py index ebbd29a..66a1b89 100644 --- a/fiches/forms.py +++ b/fiches/forms.py @@ -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) diff --git a/fiches/templates/fiches/fiches_modif.html b/fiches/templates/fiches/fiches_modif.html index 249b38a..9bd25e2 100644 --- a/fiches/templates/fiches/fiches_modif.html +++ b/fiches/templates/fiches/fiches_modif.html @@ -32,8 +32,6 @@ - {% else %} - {% endif %}