diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-04 15:32:22 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-04 15:33:13 +0200 |
commit | e0ab9856d23d8c204fde6676b208231236ec6e30 (patch) | |
tree | d0dd22cc3b923ca8a2270c121f5b94bdb19dd4c1 /archaeological_context_records/migrations | |
parent | 303a95a0cdbeb2d64b8a3fdf5143bcdbcec22270 (diff) | |
download | Ishtar-e0ab9856d23d8c204fde6676b208231236ec6e30.tar.bz2 Ishtar-e0ab9856d23d8c204fde6676b208231236ec6e30.zip |
Serializers: manage context records - uuid for context records
Diffstat (limited to 'archaeological_context_records/migrations')
-rw-r--r-- | archaeological_context_records/migrations/0051_auto_20190904_1509.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/archaeological_context_records/migrations/0051_auto_20190904_1509.py b/archaeological_context_records/migrations/0051_auto_20190904_1509.py new file mode 100644 index 000000000..d4a5562d6 --- /dev/null +++ b/archaeological_context_records/migrations/0051_auto_20190904_1509.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.18 on 2019-09-04 15:09 +from __future__ import unicode_literals + +import uuid + +from django.db import migrations, models + +from ishtar_common.utils_migrations import set_uuid_helper + + +class Migration(migrations.Migration): + + dependencies = [ + ('archaeological_context_records', '0050_dating_uuid'), + ] + + operations = [ + migrations.AddField( + model_name='contextrecord', + name='uuid', + field=models.UUIDField(blank=True, null=True), + ), + migrations.AddField( + model_name='historicalcontextrecord', + name='uuid', + field=models.UUIDField(default=uuid.uuid4), + ), + migrations.RunPython(set_uuid_helper('archaeological_context_records', + 'ContextRecord')), + migrations.AlterField( + model_name='contextrecord', + name='uuid', + field=models.UUIDField(default=uuid.uuid4), + ), + ] |