From 4a3d4ae7a7ff8df21a71258554dbcea1f0a4fd2e Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 16 Sep 2021 12:17:08 +0200 Subject: [PATCH] Use correct JSONField --- umap/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/umap/models.py b/umap/models.py index e0935a4d..2e317abc 100644 --- a/umap/models.py +++ b/umap/models.py @@ -8,7 +8,6 @@ from django.utils.translation import gettext_lazy as _ from django.core.signing import Signer from django.template.defaultfilters import slugify from django.core.files.base import File -from django.contrib.postgres.fields import JSONField from .managers import PublicManager @@ -139,7 +138,7 @@ class Map(NamedModel): editors = models.ManyToManyField(settings.AUTH_USER_MODEL, blank=True, verbose_name=_("editors")) edit_status = models.SmallIntegerField(choices=EDIT_STATUS, default=OWNER, verbose_name=_("edit status")) share_status = models.SmallIntegerField(choices=SHARE_STATUS, default=PUBLIC, verbose_name=_("share status")) - settings = JSONField(blank=True, null=True, verbose_name=_("settings"), default=dict) + settings = models.JSONField(blank=True, null=True, verbose_name=_("settings"), default=dict) objects = models.Manager() public = PublicManager()