diff options
Diffstat (limited to 'archaeological_warehouse/models.py')
| -rw-r--r-- | archaeological_warehouse/models.py | 9 | 
1 files changed, 1 insertions, 8 deletions
| diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index 30c117fc2..48cc042f8 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -29,7 +29,7 @@ from django.utils.translation import ugettext_lazy as _  from ishtar_common.data_importer import post_importer_action  from ishtar_common.models import Document, GeneralType, get_external_id, \      LightHistorizedItem, OwnPerms, Address, Person, post_save_cache, \ -    ImageModel, DashboardFormItem, IshtarImage, ThroughImage +    ImageModel, DashboardFormItem  from ishtar_common.utils import cached_label_changed @@ -65,8 +65,6 @@ class Warehouse(Address, DashboardFormItem, OwnPerms):      documents = models.ManyToManyField(          Document, related_name='warehouses', verbose_name=_(u"Documents"),          blank=True) -    images = models.ManyToManyField(IshtarImage, verbose_name=_(u"Images"), -                                    through='WarehouseImage', blank=True)      external_id = models.TextField(_(u"External ID"), blank=True, null=True)      auto_external_id = models.BooleanField(          _(u"External ID is set automatically"), default=False) @@ -210,11 +208,6 @@ class Warehouse(Address, DashboardFormItem, OwnPerms):                  return -class WarehouseImage(ThroughImage): -    item = models.ForeignKey(Warehouse, on_delete=models.CASCADE, -                             related_name='associated_images') - -  class Collection(LightHistorizedItem):      name = models.CharField(_(u"Name"), max_length=200,                              null=True, blank=True) | 
