mirror of
https://github.com/jazzband/django-eav2.git
synced 2026-04-29 19:24:51 +00:00
* chore: fix repo links * style: flake8 format models.Value * test: add test for an entity with uuid pk * feat: support entity models with uuid as pk * test: check Value repr and str methods
22 lines
559 B
Python
22 lines
559 B
Python
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
"""Creates UUID field to map to Entity FK."""
|
|
|
|
dependencies = [
|
|
('eav', '0005_auto_20210510_1305'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='value',
|
|
name='entity_uuid',
|
|
field=models.UUIDField(blank=True, null=True),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='value',
|
|
name='entity_id',
|
|
field=models.IntegerField(blank=True, null=True),
|
|
),
|
|
]
|