mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-20 09:37:48 +02:00
Just pass the user ID rather than the entire User object.
This commit is contained in:
parent
da3ba66277
commit
9da65f05eb
@ -412,7 +412,7 @@ def view_ticket(request, ticket_id):
|
|||||||
]
|
]
|
||||||
|
|
||||||
if show_subscribe:
|
if show_subscribe:
|
||||||
subscribe_to_ticket_updates(ticket, request.user)
|
subscribe_to_ticket_updates(ticket, request.user.id)
|
||||||
return HttpResponseRedirect(reverse("helpdesk:view", args=[ticket.id]))
|
return HttpResponseRedirect(reverse("helpdesk:view", args=[ticket.id]))
|
||||||
|
|
||||||
if "close" in request.GET and ticket.status == Ticket.RESOLVED_STATUS:
|
if "close" in request.GET and ticket.status == Ticket.RESOLVED_STATUS:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user