diff options
| 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 |
| commit | 87b2c52f3d32d32187cf318a39078acf58041ab8 (patch) | |
| tree | 57dd96f25a1e518dc04ac1d73fd4ebd4d52526cd /archaeological_finds/models_treatments.py | |
| parent | 10abb4228c72b9c01e5344f38047be149a734251 (diff) | |
| download | Ishtar-87b2c52f3d32d32187cf318a39078acf58041ab8.tar.bz2 Ishtar-87b2c52f3d32d32187cf318a39078acf58041ab8.zip | |
Reorganize treatment actions - add a direct to treatements
Diffstat (limited to 'archaeological_finds/models_treatments.py')
| -rw-r--r-- | archaeological_finds/models_treatments.py | 4 |
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"), |
