diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-10-04 13:32:06 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-10-04 13:32:06 +0200 |
commit | 42d0be484d96e2554c25711f5717519c68a10d6c (patch) | |
tree | 9368e318c4c6a9992485ea0855e3047fd3f1e160 /archaeological_finds/models_finds.py | |
parent | cd01ae68c033115328003658c666bdb082f485bf (diff) | |
download | Ishtar-42d0be484d96e2554c25711f5717519c68a10d6c.tar.bz2 Ishtar-42d0be484d96e2554c25711f5717519c68a10d6c.zip |
Preservation module: models - change alteration and alteration causes for m2m (refs #3639)
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r-- | archaeological_finds/models_finds.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index bf026c03f..3d379d2a7 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -716,12 +716,13 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel, preservation_to_considers = models.ManyToManyField( PreservationType, verbose_name=_(u"Type of preservation to consider"), related_name='finds', blank=True) - alteration = models.ForeignKey( - AlterationType, verbose_name=_(u"Alteration"), blank=True, null=True + alterations = models.ManyToManyField( + AlterationType, verbose_name=_(u"Alteration"), blank=True, + related_name='finds' ) - alteration_cause = models.ForeignKey( + alteration_causes = models.ManyToManyField( AlterationCauseType, verbose_name=_(u"Alteration cause"), blank=True, - null=True + related_name='finds' ) treatment_emergency = models.ForeignKey( TreatmentEmergencyType, verbose_name=_(u"Treatment emergency"), |