8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-24 20:33:11 +00:00

Add autocomplete on multiop

This commit is contained in:
chirac 2020-12-30 19:29:56 +01:00 committed by Gabriel Detraz
parent c4429a8f1c
commit 6f121f09d0

View file

@ -29,6 +29,7 @@ each.
from django import forms
from django.forms import ModelForm, Form
from django.utils.translation import ugettext_lazy as _
from re2o.mixins import AutocompleteMultipleModelMixin
from .models import MultiopOption
@ -39,3 +40,8 @@ class EditMultiopOptionForm(ModelForm):
class Meta:
model = MultiopOption
fields = "__all__"
widgets = {
"enabled_dorm": AutocompleteMultipleModelMixin(
url="/topologie/dormitory-autocomplete",
),
}