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 | 6dd121e6c224075284c113d4fea30f8a14ebbd3d (patch) | |
| tree | 9368e318c4c6a9992485ea0855e3047fd3f1e160 /archaeological_finds/models_finds.py | |
| parent | 1282a64bcdca8d928f44a94bfdaaf47b934b4246 (diff) | |
| download | Ishtar-6dd121e6c224075284c113d4fea30f8a14ebbd3d.tar.bz2 Ishtar-6dd121e6c224075284c113d4fea30f8a14ebbd3d.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"), |
