|
@@ -4,7 +4,7 @@ from django.db import models
|
|
|
from django.utils import timezone
|
|
|
from django.utils.encoding import python_2_unicode_compatible
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
-from jet.utils import DateTimeEncoder
|
|
|
+from jet.utils import LazyDateTimeEncoder
|
|
|
|
|
|
|
|
|
@python_2_unicode_compatible
|
|
@@ -75,7 +75,7 @@ class UserDashboardModule(models.Model):
|
|
|
if setting in settings:
|
|
|
settings.pop(setting)
|
|
|
|
|
|
- self.settings = json.dumps(settings, cls=DateTimeEncoder)
|
|
|
+ self.settings = json.dumps(settings, cls=LazyDateTimeEncoder)
|
|
|
self.save()
|
|
|
|
|
|
def update_settings(self, update_settings):
|
|
@@ -83,7 +83,7 @@ class UserDashboardModule(models.Model):
|
|
|
|
|
|
settings.update(update_settings)
|
|
|
|
|
|
- self.settings = json.dumps(settings, cls=DateTimeEncoder)
|
|
|
+ self.settings = json.dumps(settings, cls=LazyDateTimeEncoder)
|
|
|
self.save()
|
|
|
|
|
|
|