diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-05-11 11:03:09 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-05-11 11:03:09 +0200 |
commit | af36826678104f6a5cc1bffe66510ab32ad10160 (patch) | |
tree | 4ab2d308b84d2e4162cb4c3b6ee26d799dbf3358 /archaeological_warehouse | |
parent | cf41a9523e54b7db5345345ad11375086bc7ccb5 (diff) | |
download | Ishtar-af36826678104f6a5cc1bffe66510ab32ad10160.tar.bz2 Ishtar-af36826678104f6a5cc1bffe66510ab32ad10160.zip |
🐛 Container import: do not crash on empty container type
Diffstat (limited to 'archaeological_warehouse')
-rw-r--r-- | archaeological_warehouse/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index a59371776..048f02d4d 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -1900,7 +1900,7 @@ class Container( self.responsibility = self.location except Warehouse.DoesNotExist: return - if self.container_type.stationary: + if not hasattr(self, "container_type") or self.container_type.stationary: return q = Container.objects.filter(index=self.index, location=self.location) if self.id: |