summaryrefslogtreecommitdiff
path: root/archaeological_warehouse
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_warehouse')
-rw-r--r--archaeological_warehouse/forms.py3
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(