8000 Fix modules context · socketpy/django-jet@891ffd3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 891ffd3

Browse files
committed
Fix modules context
1 parent fc06436 commit 891ffd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jet/dashboard/modules.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from django.db.models import Q
55
from django.template.loader import render_to_string
66
from django.utils.translation import ugettext_lazy as _
7-
from jet.utils import get_app_list, LazyDateTimeEncoder
7+
from jet.utils import get_app_list, LazyDateTimeEncoder, context_to_dict
88
import datetime
99

1010

@@ -148,7 +148,7 @@ def init_with_context(self, context):
148148
pass
149149

150150
def get_context_data(self):
151-
context = self.context
151+
context = context_to_dict(self.context)
152152
context.update({
153153
'module': self
154154
})

0 commit comments

Comments
 (0)
0