diff --git a/pyweb/mumble/models.py b/pyweb/mumble/models.py index 01a4b59..bedf2a7 100644 --- a/pyweb/mumble/models.py +++ b/pyweb/mumble/models.py @@ -221,6 +221,11 @@ class Mumble( models.Model ): bonjour = mk_config_bool_property( "bonjour", ugettext_noop("Publish this server via Bonjour") ) autoboot= mk_config_bool_property( "boot", ugettext_noop("Boot Server when Murmur starts") ) + def get_absolute_url( self ): + from views import show + from django.core.urlresolvers import reverse + return reverse( show, kwargs={ 'server': self.id } ) + def getBooted( self ): if self.id is not None: if self.server.online: