mirror of https://github.com/jumpserver/jumpserver
12 lines
257 B
Python
12 lines
257 B
Python
|
from rest_framework import serializers
|
||
|
|
||
|
from settings.models import ChatPrompt
|
||
|
|
||
|
|
||
|
class ChatPromptSerializer(serializers.ModelSerializer):
|
||
|
class Meta:
|
||
|
model = ChatPrompt
|
||
|
fields = [
|
||
|
'id', 'name', 'content', 'builtin'
|
||
|
]
|