From 2078e209d111c2c68682a61e911cdb02a2af4548 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 28 Feb 2016 19:54:24 +0530 Subject: [PATCH] views: Minor adjustment to module load order --- plinth/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/views.py b/plinth/views.py index 47f7518c8..669506d0c 100644 --- a/plinth/views.py +++ b/plinth/views.py @@ -29,7 +29,7 @@ from django.utils.translation import ugettext as _ import time from . import forms -from . import module_loader +import plinth def index(request): @@ -57,7 +57,7 @@ class ConfigurationView(FormView): def get_module(self): """Return the module associated with the view.""" - return module_loader.loaded_modules[self.get_module_name()] + return plinth.module_loader.loaded_modules[self.get_module_name()] def get_initial(self): """Return the status of the module to fill in the form."""