django-rest-framework/rest_framework/tests/serializers.py

9 lines
227 B
Python

from rest_framework import serializers
from rest_framework.tests.models import NullableForeignKeySource
class NullableFKSourceSerializer(serializers.ModelSerializer):
class Meta:
model = NullableForeignKeySource