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 | b7de395c03e3aa4ac7cf29568cc00951faaa2a49 (patch) | |
| tree | c3f2557ff641c7dcd4d2dab5dd4ad93e6418aa1d | |
| parent | c83f1989ab1c4833c8221c5cfcb1d9650f5a22f2 (diff) | |
| download | Ishtar-b7de395c03e3aa4ac7cf29568cc00951faaa2a49.tar.bz2 Ishtar-b7de395c03e3aa4ac7cf29568cc00951faaa2a49.zip  | |
Warehouse: fix related name in a query
| -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(  | 
