forked from uncloud/uncloud
update to use new JSONFIELD
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
parent
ee79877a27
commit
165dacb7bf
2 changed files with 3 additions and 3 deletions
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue