mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-22 23:13:46 +00:00
Add autocomplete on multiop
This commit is contained in:
parent
c4429a8f1c
commit
6f121f09d0
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