diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-05-28 11:23:51 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-05-28 11:23:51 +0200 |
commit | 86b621db13f645f0fcd02af3668d09cf10b960f9 (patch) | |
tree | c3f2557ff641c7dcd4d2dab5dd4ad93e6418aa1d /archaeological_warehouse/forms.py | |
parent | a8acbccdc2bd2b0ce368ad5478fc28808c94db07 (diff) | |
download | Ishtar-86b621db13f645f0fcd02af3668d09cf10b960f9.tar.bz2 Ishtar-86b621db13f645f0fcd02af3668d09cf10b960f9.zip |
Warehouse: fix related name in a query
Diffstat (limited to 'archaeological_warehouse/forms.py')
-rw-r--r-- | archaeological_warehouse/forms.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/archaeological_warehouse/forms.py b/archaeological_warehouse/forms.py index 15cfead74..e13255efc 100644 --- a/archaeological_warehouse/forms.py +++ b/archaeological_warehouse/forms.py @@ -306,8 +306,7 @@ class LocalisationForm(CustomForm, forms.Form): super(LocalisationForm, self).__init__(*args, **kwargs) if not self.warehouse: return - for divlink in self.warehouse.warehousedivisionlink_set.order_by( - 'order').all(): + for divlink in self.warehouse.divisions.order_by('order').all(): initial = u"-" if self.container: q = models.ContainerLocalisation.objects.filter( |