Fix pycodestyle error

This commit is contained in:
Garret Wassermann 2020-04-15 07:42:52 -04:00
parent 5ad0743722
commit 8a521d563b

View File

@ -1046,8 +1046,7 @@ class CreateTicketView(MustBeStaffMixin, abstract_views.AbstractCreateTicketMixi
return kwargs
def form_valid(self, form):
self.ticket = form.save(
user=self.request.user if self.request.user.is_authenticated else None)
self.ticket = form.save(user=self.request.user if self.request.user.is_authenticated else None)
return super().form_valid(form)
def get_success_url(self):