8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 03:13:12 +00:00

Add autocomplete on multiop

This commit is contained in:
chirac 2020-12-30 19:29:56 +01:00
parent 3f7af6189f
commit 9df9179c4e

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",
),
}