serializers.py 431 B

12345678910111213
  1. from rest_framework import serializers
  2. from api_tokens.serializers import APITokenSerializer
  3. from projects.serializers.serializers import ProjectWithKeysSerializer
  4. class SetupWizardSerializer(serializers.Serializer):
  5. hash = serializers.CharField(max_length=64, min_length=64)
  6. class SetupWizardResultSerializer(serializers.Serializer):
  7. apiKeys = APITokenSerializer()
  8. projects = ProjectWithKeysSerializer(many=True)