diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-06-23 14:21:39 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:20 +0100 | 
| commit | 802603ace7dc82084abcb412499b3a194ecab404 (patch) | |
| tree | 01906dd3c678fecf355bf79fdb872599ebb1baba /archaeological_warehouse/models.py | |
| parent | 907e82a50969a4fe6cfcbf9538792f2c754898fa (diff) | |
| download | Ishtar-802603ace7dc82084abcb412499b3a194ecab404.tar.bz2 Ishtar-802603ace7dc82084abcb412499b3a194ecab404.zip | |
Container: improve sheet layout
Diffstat (limited to 'archaeological_warehouse/models.py')
| -rw-r--r-- | archaeological_warehouse/models.py | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index 97fa38c88..565b64af2 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -149,6 +149,10 @@ class Warehouse(Address, DocumentItem, GeoItem, QRCodeItem, DashboardFormItem,      def __str__(self):          return self.name +    @property +    def short_label(self): +        return self.name +      def natural_key(self):          return (self.uuid, ) @@ -380,7 +384,6 @@ class WarehouseDivisionLinkManager(models.Manager):                          container_type__txt_idx=container_type) -  class ContainerType(GeneralType):      stationary = models.BooleanField(          _("Stationary"), default=False, @@ -893,6 +896,7 @@ class Container(DocumentItem, Merge, LightHistorizedItem, QRCodeItem, GeoItem,          while parent:              localisations.append(parent)              parent = parent.parent +        localisations.append(self.location)          return reversed(localisations)      def get_localisation(self, place): | 
