mirror of https://github.com/jumpserver/jumpserver
11 lines
237 B
Python
11 lines
237 B
Python
|
from rest_framework import serializers
|
||
|
|
||
|
from tickets.models import TicketSession
|
||
|
|
||
|
|
||
|
class TicketSessionRelationSerializer(serializers.ModelSerializer):
|
||
|
|
||
|
class Meta:
|
||
|
model = TicketSession
|
||
|
fields = ['ticket', 'session']
|