From 165dacb7bf85e70bf4aa66b8f19e44bbcc549d89 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 4 Aug 2020 12:01:44 +0200 Subject: [PATCH] update to use new JSONFIELD Signed-off-by: Nico Schottelius --- opennebula/models.py | 3 +-- uncloud/models.py | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opennebula/models.py b/opennebula/models.py index 2730474..6c7dc52 100644 --- a/opennebula/models.py +++ b/opennebula/models.py @@ -1,7 +1,6 @@ import uuid from django.db import models from django.contrib.auth import get_user_model -from django.contrib.postgres.fields import JSONField from uncloud_pay.models import Product # ungleich specific @@ -13,7 +12,7 @@ storage_class_mapping = { class VM(Product): vmid = models.IntegerField(primary_key=True) - data = JSONField() + data = models.JSONField() @property def uncloud_name(self): diff --git a/uncloud/models.py b/uncloud/models.py index bd7a931..212d555 100644 --- a/uncloud/models.py +++ b/uncloud/models.py @@ -1,5 +1,6 @@ from django.db import models -from django.contrib.postgres.fields import JSONField +from django.db.models import JSONField + from django.utils.translation import gettext_lazy as _ class UncloudModel(models.Model):