def api_public_create_ticket(self):
        form = TicketForm(self.request.POST)
        form.fields['queue'].choices = [[q.id, q.title] for q in Queue.objects.all()]
        form.fields['assigned_to'].choices = [[u.id, u.get_username()] for u in User.objects.filter(is_active=True)]

        if form.is_valid():
            ticket = form.save(user=self.request.user)
            return api_return(STATUS_OK, ticket.id % "%s")
        else:
            return api_return(STATUS_ERROR, text=form.errors.as_text())
dataset/ETHPy150Open rossp/django-helpdesk/helpdesk/views/api.py/API.api_public_create_ticket/swapped operands of `%`