forked from CGM_Public/pretix_original
Item list: Add more icons
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user