django-eav2/eav/migrations/0003_auto_20210404_2209.py
2023-02-10 09:56:08 -07:00

44 lines
1.2 KiB
Python

# Generated by Django 3.1.6 on 2021-04-04 22:09
import django.core.serializers.json
from django.db import migrations
from django.db.models import JSONField
import eav.fields
class Migration(migrations.Migration):
dependencies = [
('eav', '0002_add_entity_ct_field'),
]
operations = [
migrations.AddField(
model_name='value',
name='value_json',
field=JSONField(
blank=True,
default=dict,
encoder=django.core.serializers.json.DjangoJSONEncoder,
null=True,
),
),
migrations.AlterField(
model_name='attribute',
name='datatype',
field=eav.fields.EavDatatypeField(
choices=[
('text', 'Text'),
('date', 'Date'),
('float', 'Float'),
('int', 'Integer'),
('bool', 'True / False'),
('object', 'Django Object'),
('enum', 'Multiple Choice'),
('json', 'JSON Object'),
],
max_length=6,
verbose_name='Data Type',
),
),
]