From 1e27451f55a8ba9246b6b0c62c395f6dc6c14d89 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 4 Sep 2019 14:51:54 +0200 Subject: Use UUID for operations and datings --- archaeological_context_records/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archaeological_context_records/models.py') diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 3b236346d..4588e6465 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -18,6 +18,7 @@ # See the file COPYING for details. from collections import OrderedDict +import uuid from django.conf import settings from django.contrib.gis.db import models @@ -67,6 +68,7 @@ post_delete.connect(post_save_cache, sender=DatingQuality) class Dating(models.Model): + uuid = models.UUIDField(default=uuid.uuid4) period = models.ForeignKey(Period, verbose_name=_("Period")) start_date = models.IntegerField(_("Start date"), blank=True, null=True) end_date = models.IntegerField(_("End date"), blank=True, null=True) -- cgit v1.2.3