diff --git a/plinth/modules/avahi/__init__.py b/plinth/modules/avahi/__init__.py index 8f9fee070..75eb28745 100644 --- a/plinth/modules/avahi/__init__.py +++ b/plinth/modules/avahi/__init__.py @@ -14,7 +14,6 @@ from plinth.modules.firewall.components import Firewall from plinth.modules.names.components import DomainType from plinth.signals import domain_added, domain_removed, post_hostname_change from plinth.utils import format_lazy -from plinth.views import AppView from .manifest import backup # noqa, pylint: disable=unused-import @@ -109,7 +108,3 @@ def on_post_hostname_change(sender, old_hostname, new_hostname, **kwargs): name=old_hostname + '.local') domain_added.send_robust(sender='avahi', domain_type='domain-type-local', name=new_hostname + '.local', services='__all__') - - -class AvahiAppView(AppView): - app_id = 'avahi' diff --git a/plinth/modules/avahi/urls.py b/plinth/modules/avahi/urls.py index d8b9c8630..698c721de 100644 --- a/plinth/modules/avahi/urls.py +++ b/plinth/modules/avahi/urls.py @@ -5,8 +5,8 @@ URLs for the service discovery module. from django.conf.urls import url -from plinth.modules.avahi import AvahiAppView +from plinth.views import AppView urlpatterns = [ - url(r'^sys/avahi/$', AvahiAppView.as_view(), name='index'), + url(r'^sys/avahi/$', AppView.as_view(app_id='avahi'), name='index'), ]