@@ -231,7 +231,7 @@
<div class="card-body">
<h5>{{ event.author_username }}</h5>
- {{ comment.body|safe|urlize|linebreaks }}
+ {{ event.body|safe|urlize|linebreaks }}
<div class="text-body-secondary d-flex justify-content-between">
<small>{{ event.date }}</small>
@@ -57,7 +57,7 @@ class TicketDetailView(LoginRequiredMixin, UserCanReadTicketMixin, DetailView):
Event.objects.create(
author=request.user,
ticket=ticket,
- body="Ticket status was changed from "+old_status+" to "+status
+ body="Ticket status was changed from "+str(old_status)+" to "+status
)
else:
messages.error(request, f"Status change error.")