sport.py 199 B

12345678
  1. from rest_framework import serializers
  2. from webservice_running.models import Sport
  3. class SportSerializer(serializers.ModelSerializer):
  4. class Meta:
  5. model = Sport
  6. exclude = ["id"]