summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_finds.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-02-13 17:01:07 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-02-13 17:01:07 +0100
commit742566908ef6ade2221646dac07520331a630926 (patch)
treeefcc0ec8cf1ff42b117652d4213e1f9289b234a3 /archaeological_finds/models_finds.py
parentc586f347490efbbd82e7deb2c59743a6f8766d63 (diff)
downloadIshtar-742566908ef6ade2221646dac07520331a630926.tar.bz2
Ishtar-742566908ef6ade2221646dac07520331a630926.zip
Find: add field comment on the material (refs #4284)
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r--archaeological_finds/models_finds.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index c4e6abb54..6f8199412 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -1083,6 +1083,10 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, OwnPerms,
SearchAltName(
pgettext_lazy(u"key for text search", u"comment"),
'comment__iexact'),
+ 'material_comment':
+ SearchAltName(
+ pgettext_lazy(u"key for text search", u"material-comment"),
+ 'material_comment__iexact'),
'dating_comment':
SearchAltName(
pgettext_lazy(u"key for text search", u"dating-comment"),
@@ -1343,6 +1347,8 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, OwnPerms,
on_delete=models.SET_NULL,
blank=True, null=True
)
+ material_comment = models.TextField(_(u"Comment on the material"),
+ blank=True, null=True)
volume = models.FloatField(_(u"Volume (l)"), blank=True, null=True)
weight = models.FloatField(_(u"Weight"), blank=True, null=True)
weight_unit = models.CharField(_(u"Weight unit"), max_length=4,