Browse Source

use a ChoiceField for suggest{positional,pushtotalk}

Natenom/support-murmur-13-1446181288462
Michael Ziegler 12 years ago
parent
commit
5025689a73
  1. 6
      pyweb/mumble/forms.py

6
pyweb/mumble/forms.py

@ -22,7 +22,7 @@ from django import forms
from django.conf import settings from django.conf import settings
from django.forms import Form, ModelForm from django.forms import Form, ModelForm
from django.forms.models import ModelFormMetaclass from django.forms.models import ModelFormMetaclass
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext_lazy as _, ugettext
from mumble.models import MumbleServer, Mumble, MumbleUser from mumble.models import MumbleServer, Mumble, MumbleUser
@ -125,8 +125,8 @@ class MumbleForm( PropertyModelForm ):
"Remember the channel users were in when they quit, and automatically move them to " "Remember the channel users were in when they quit, and automatically move them to "
"that channel when they join.") ) "that channel when they join.") )
suggestversion = forms.CharField( required=False ) suggestversion = forms.CharField( required=False )
suggestpositional = forms.BooleanField( required=False )
suggestpushtotalk = forms.BooleanField( required=False )
suggestpositional = forms.ChoiceField( required=False, choices=( ('', ugettext('No suggestion')), ('true', ugettext('Suggest on')), ('false', ugettext('Suggest off')) ) )
suggestpushtotalk = forms.ChoiceField( required=False, choices=( ('', ugettext('No suggestion')), ('true', ugettext('Suggest on')), ('false', ugettext('Suggest off')) ) )
opusthreshold = forms.IntegerField( required=False, initial=100, help_text=_( opusthreshold = forms.IntegerField( required=False, initial=100, help_text=_(
"Force Opus-Codec if this percentage of clients support it. Enter without % character.") ) "Force Opus-Codec if this percentage of clients support it. Enter without % character.") )
registerlocation = forms.CharField( required=False, help_text=_( registerlocation = forms.CharField( required=False, help_text=_(

Loading…
Cancel
Save