Fix a severe bug in VariationField

This commit is contained in:
Raphael Michel
2015-02-18 20:36:36 +01:00
parent 03184bdbf2
commit c5ae503c0e
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ class VariationsFieldRenderer(forms.widgets.CheckboxFieldRenderer):
def sort(v):
# Given a list of variations, this will sort them by their position
# on the x-axis
return v[prop2.identity].identity
return v[prop2.identity].sortkey
# We now iterate over the cartesian product of all the other
# properties which are NOT on the axes of the grid because we
+1 -1
View File
@@ -765,7 +765,7 @@ class ItemVariations(ItemDetailMixin, EventPermissionRequiredMixin, TemplateView
def sort(v):
# Given a list of variations, this will sort them by their position
# on the x-axis
return v[prop2.identity].identity
return v[prop2.identity].sortkey
# We now iterate over the cartesian product of all the other
# properties which are NOT on the axes of the grid because we