fix(core): Related ticket slash command requires model to be imported

ref: #248 #376 #381
This commit is contained in:
2024-11-05 17:51:16 +09:30
parent 72fe8b8422
commit df73e86c88

View File

@ -1,6 +1,7 @@
import re
class CommandRelatedTicket:
# This summary is used for the user documentation
"""Add to the current ticket a relationship to another ticket. Supports all ticket
@ -41,14 +42,12 @@ For this command to process the following conditions must be met:
None: On successfully processing the command
"""
a = 'a'
command = match.group('command')
ticket_id:int = str(match.group('ticket'))
if ticket_id is not None:
from core.serializers.ticket_related import RelatedTicketModelSerializer
from core.serializers.ticket_related import RelatedTickets, RelatedTicketModelSerializer
if command == 'relate':