Add JSONField for device metadata (#2550)

This commit is contained in:
Raphael Michel
2022-03-24 11:55:44 +01:00
committed by GitHub
parent 2486c3d205
commit 9e5403333c
5 changed files with 33 additions and 3 deletions

View File

@@ -0,0 +1,18 @@
# Generated by Django 3.2.12 on 2022-03-22 11:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pretixbase', '0208_auto_20220214_1632'),
]
operations = [
migrations.AddField(
model_name='device',
name='info',
field=models.JSONField(null=True),
),
]

View File

@@ -156,6 +156,9 @@ class Device(LoggedModel):
null=True,
blank=False
)
info = models.JSONField(
null=True, blank=True,
)
objects = ScopedManager(organizer='organizer')