mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
Add autocomplete on multiop
This commit is contained in:
parent
3f7af6189f
commit
9df9179c4e
1 changed files with 6 additions and 0 deletions
|
@ -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",
|
||||
),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue