Browse Source

Add module pk to result

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

+ 1 - 0
jet/views.py

@@ -192,6 +192,7 @@ def add_user_dashboard_module_view(request):
 
     if form.is_valid():
         module = form.save()
+        result['id'] = module.pk
         messages.success(request, _('Widget has been successfully added'))
 
         if module.app_label: