Browse Source

Pass module to module settings form

Denis K 9 years ago
parent
commit
d74468dd26
1 changed files with 2 additions and 1 deletions
  1. 2 1
      jet/views.py

+ 2 - 1
jet/views.py

@@ -30,7 +30,8 @@ class UpdateDashboardModuleView(SuccessMessageMixin, UpdateView):
 
     def get_settings_form_kwargs(self):
         kwargs = {
-            'initial': self.module.settings
+            'initial': self.module.settings,
+            'module': self.module
         }
 
         if self.request.method in ('POST', 'PUT'):