mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 15:33:45 +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 import forms
|
||||||
from django.forms import ModelForm, Form
|
from django.forms import ModelForm, Form
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
from re2o.mixins import AutocompleteMultipleModelMixin
|
||||||
|
|
||||||
from .models import MultiopOption
|
from .models import MultiopOption
|
||||||
|
|
||||||
|
@ -39,3 +40,8 @@ class EditMultiopOptionForm(ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = MultiopOption
|
model = MultiopOption
|
||||||
fields = "__all__"
|
fields = "__all__"
|
||||||
|
widgets = {
|
||||||
|
"enabled_dorm": AutocompleteMultipleModelMixin(
|
||||||
|
url="/topologie/dormitory-autocomplete",
|
||||||
|
),
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue