Merge branch 'k-fet' into qwann/k-fet/stats

This commit is contained in:
Qwann 2017-02-13 14:37:29 +01:00
commit 9cae3ad0bd
5 changed files with 31 additions and 25 deletions

View file

@ -1692,6 +1692,7 @@ def order_create(request, pk):
articles = (Article.objects
.filter(suppliers=supplier.pk)
.distinct()
.select_related('category')
.order_by('category__name', 'name'))