Browse Source

add the fields to the forms and rephrase the suggestversion help text

Natenom/support-murmur-13-1446181288462
Michael Ziegler 14 years ago
parent
commit
feafd8b189
  1. 3
      pyweb/mumble/forms.py
  2. 2
      pyweb/mumble/models.py

3
pyweb/mumble/forms.py

@ -120,6 +120,9 @@ class MumbleForm( PropertyModelForm ):
rememchn= forms.BooleanField( required=False, help_text=_(
"Remember the channel users were in when they quit, and automatically move them to "
"that channel when they join.") )
sgversion= forms.CharField( required=False )
sgpositional = forms.BooleanField( required=False )
sgptt = forms.BooleanField( required=False )
def __init__( self, *args, **kwargs ):
PropertyModelForm.__init__( self, *args, **kwargs )

2
pyweb/mumble/models.py

@ -211,7 +211,7 @@ class Mumble( models.Model ):
timeout = mk_config_property( "timeout", ugettext_noop("Timeout"), get_coerce=int )
textlen = mk_config_property( "textmessagelength", ugettext_noop("Maximum length of text messages") )
usersperchannel = mk_config_property( "usersperchannel",ugettext_noop("Users per channel"), get_coerce=int )
sgversion = mk_config_property( "suggestversion", ugettext_noop("Version to suggest to upgrade to") )
sgversion = mk_config_property( "suggestversion", ugettext_noop("Version to recommend") )
certreq = mk_config_bool_property( "certrequired", ugettext_noop("Require Certificate") )
html = mk_config_bool_property( "allowhtml", ugettext_noop("Allow HTML to be used in messages") )

Loading…
Cancel
Save