bijoe: order warehouses by name when displayed
This commit is contained in:
parent
3e9db1eae5
commit
ddfc6c468a
|
@ -18,7 +18,7 @@ class HomepageView(TemplateView):
|
|||
|
||||
def get_context_data(self, **kwargs):
|
||||
ctx = super(HomepageView, self).get_context_data(**kwargs)
|
||||
ctx['warehouses'] = get_warehouses()
|
||||
ctx['warehouses'] = sorted((Engine(w) for w in get_warehouses()), key=lambda w: w.label)
|
||||
return ctx
|
||||
|
||||
|
||||
|
|
Reference in New Issue