On diminue les requêtes dans la bdd en ne récupérant pas la liste des votants pour chaque option
This commit is contained in:
parent
f33710a32c
commit
44ee65bf2e
1 changed files with 1 additions and 0 deletions
|
@ -81,6 +81,7 @@ class VoteForm(forms.ModelForm):
|
|||
class Meta:
|
||||
model = Option
|
||||
fields = []
|
||||
exclude = ["voters"]
|
||||
|
||||
|
||||
OptionFormSet = inlineformset_factory(
|
||||
|
|
Loading…
Reference in a new issue