mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
views: Minor adjustment to module load order
This commit is contained in:
parent
f04e1c1657
commit
2078e209d1
@ -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."""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user