summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_treatments.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-11-14 18:02:04 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-11-28 11:40:16 +0100
commit63ec480b4e617157d7bbb22820272496f14bb771 (patch)
tree57dd96f25a1e518dc04ac1d73fd4ebd4d52526cd /archaeological_finds/models_treatments.py
parenta93ecfdfb6472b212f8f6ef29fdb8605215ec2af (diff)
downloadIshtar-63ec480b4e617157d7bbb22820272496f14bb771.tar.bz2
Ishtar-63ec480b4e617157d7bbb22820272496f14bb771.zip
Reorganize treatment actions - add a direct to treatements
Diffstat (limited to 'archaeological_finds/models_treatments.py')
-rw-r--r--archaeological_finds/models_treatments.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py
index 6a57a77f5..0bf3cad38 100644
--- a/archaeological_finds/models_treatments.py
+++ b/archaeological_finds/models_treatments.py
@@ -147,6 +147,10 @@ class Treatment(DashboardFormItem, ValueGetter, BaseHistorizedItem,
goal = models.TextField(_(u"Goal"), blank=True, null=True)
start_date = models.DateField(_(u"Start date"), blank=True, null=True)
end_date = models.DateField(_(u"Closing date"), blank=True, null=True)
+ creation_date = models.DateTimeField(default=datetime.datetime.now)
+ find = models.ForeignKey(
+ "Find", verbose_name=_(u"Find"), related_name='treatments', blank=True,
+ null=True, help_text=_(u"Related find for non-destructive treatment"))
container = models.ForeignKey(Container, verbose_name=_(u"Container"),
blank=True, null=True)
estimated_cost = models.FloatField(_(u"Estimated cost"),