diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-05-01 20:09:21 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-12 08:43:58 +0200 | 
| commit | eac44d3169c682e183d962f99d21a1e44354d37b (patch) | |
| tree | 063f1adeb5f768028edbf2c0de1cb30f17de2f8e /archaeological_operations/models.py | |
| parent | f8eca001008f0e07c6a2a38e78c1af5db415940a (diff) | |
| download | Ishtar-eac44d3169c682e183d962f99d21a1e44354d37b.tar.bz2 Ishtar-eac44d3169c682e183d962f99d21a1e44354d37b.zip | |
Display generation button for relation image on the sheet
Diffstat (limited to 'archaeological_operations/models.py')
| -rw-r--r-- | archaeological_operations/models.py | 10 | 
1 files changed, 3 insertions, 7 deletions
| diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 87ec89870..2a5f1cbe6 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -38,7 +38,8 @@ from ishtar_common.models import GeneralType, BaseHistorizedItem, \      SourceType, Person, Organization, Town, Dashboard, IshtarUser, ValueGetter,\      DocumentTemplate, ShortMenuItem, DashboardFormItem, GeneralRelationType,\      GeneralRecordRelations, post_delete_record_relation, OperationType, \ -    ImageModel, post_save_cache, PersonType, IshtarImage, get_image_path +    ImageModel, post_save_cache, PersonType, IshtarImage, get_image_path, \ +    RelationItem  class RemainType(GeneralType): @@ -271,7 +272,7 @@ class ClosedItem(object):  class Operation(ClosedItem, BaseHistorizedItem, ImageModel, OwnPerms, -                ValueGetter, ShortMenuItem, DashboardFormItem): +                ValueGetter, ShortMenuItem, DashboardFormItem, RelationItem):      QUALITY_DICT = dict(QUALITY)      SHOW_URL = 'show-operation'      TABLE_COLS = ['year', 'towns', 'common_name', 'operation_type', @@ -477,11 +478,6 @@ class Operation(ClosedItem, BaseHistorizedItem, ImageModel, OwnPerms,      finds_received = models.NullBooleanField(          _(u"Finds received"), blank=True, null=True) -    relation_image = models.FileField( -        _(u"Generated relation image (SVG)"), null=True, blank=True, -        upload_to=get_image_path -    ) -      # judiciary      seizure_name = models.TextField(_(u"Seizure name"), blank=True, null=True)      official_report_number = models.TextField(_(u"Official report number"), | 
