forked from CGM_Public/pretix_original
formclass= argument will get optional in Django 1.8
This commit is contained in:
@@ -492,7 +492,7 @@ class QuotaEditorMixin:
|
|||||||
def items(self) -> "List[Item]":
|
def items(self) -> "List[Item]":
|
||||||
return list(self.request.event.items.all().prefetch_related("properties", "variations"))
|
return list(self.request.event.items.all().prefetch_related("properties", "variations"))
|
||||||
|
|
||||||
def get_form(self, form_class):
|
def get_form(self, form_class=QuotaForm):
|
||||||
if not hasattr(self, '_form'):
|
if not hasattr(self, '_form'):
|
||||||
kwargs = self.get_form_kwargs()
|
kwargs = self.get_form_kwargs()
|
||||||
kwargs['items'] = self.items
|
kwargs['items'] = self.items
|
||||||
|
|||||||
Reference in New Issue
Block a user