19 lines
436 B
Python
Executable file
19 lines
436 B
Python
Executable file
from rest_framework import serializers
|
|
from rest_framework.exceptions import APIException
|
|
|
|
from apps.users.serializers import PublicUserSerializer
|
|
from .models import App
|
|
|
|
|
|
class AppSerializer(serializers.ModelSerializer):
|
|
class Meta:
|
|
model = App
|
|
fields = (
|
|
'uuid',
|
|
'title',
|
|
'description',
|
|
'order',
|
|
"logo",
|
|
"type",
|
|
'url',
|
|
)
|