Use correct JSONField
This commit is contained in:
parent
91cfc39cb6
commit
4a3d4ae7a7
1 changed files with 1 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue