bijoe: order warehouses by name when displayed
This commit is contained in:
parent
521ccd5e38
commit
45a1ba23a8
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue