diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-01-21 16:03:37 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:23 +0100 |
commit | 311a4addb62dc4dac5a6fee7c2097a118acb9a8e (patch) | |
tree | 11f70049aee2bd55ff9a3a569b52228208489186 /archaeological_warehouse/models.py | |
parent | 13b56aa38586bb1c8e9efee180c88606ee225c4c (diff) | |
download | Ishtar-311a4addb62dc4dac5a6fee7c2097a118acb9a8e.tar.bz2 Ishtar-311a4addb62dc4dac5a6fee7c2097a118acb9a8e.zip |
Warehouse - model: add collection to container
Diffstat (limited to 'archaeological_warehouse/models.py')
-rw-r--r-- | archaeological_warehouse/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index efbdd922d..8273619d9 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -851,6 +851,11 @@ class Container(DocumentItem, Merge, LightHistorizedItem, related_name='owned_containers', blank=True, null=True, help_text=_("Deprecated - do not use") ) + collection = models.ForeignKey( + Warehouse, verbose_name=_("Collection"), + related_name='collections', blank=True, null=True, + help_text=_("Warehouse that own the container") + ) container_type = models.ForeignKey(ContainerType, verbose_name=_("Container type"), related_name="containers") |