Item list: Add more icons

This commit is contained in:
Raphael Michel
2021-01-22 15:35:26 +01:00
parent 7165cc4c3b
commit e57291914c
2 changed files with 23 additions and 2 deletions

View File

@@ -47,6 +47,7 @@ from pretix.control.signals import item_forms, item_formsets
from pretix.helpers.models import modelcopy
from . import ChartContainingView, CreateView, PaginationMixin, UpdateView
from ...base.channels import get_all_sales_channels
class ItemList(ListView):
@@ -66,6 +67,11 @@ class ItemList(ListView):
'category__position', 'category', 'position'
)
def get_context_data(self, **kwargs):
ctx = super().get_context_data(**kwargs)
ctx['sales_channels'] = get_all_sales_channels()
return ctx
def item_move(request, item, up=True):
"""