123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- from rest_framework import serializers
- from sports.models import *
- class SportsmanSerializer(serializers.ModelSerializer):
- class Meta:
- model = Sportsman
- exclude = ["id"]
- class SportSerializer(serializers.ModelSerializer):
- class Meta:
- model = Sport
- exclude = ["id"]
- class EventSerializer(serializers.ModelSerializer):
- class Meta:
- model = Event
- exclude = ["id"]
- class SportPreferrenceSerializer(serializers.ModelSerializer):
- class Meta:
- model = SportPreferrence
- exclude = ["id"]
- class EventGallerySerializer(serializers.ModelSerializer):
- class Meta:
- model = EventGallery
- exclude = ["id"]
- class SportsmanGallerySerializer(serializers.ModelSerializer):
- class Meta:
- model = SportsmanGallery
- exclude = ["id"]
- class AchievementsSerializer(serializers.ModelSerializer):
- class Meta:
- model = Achievements
- exclude = ["id"]
- class AchievementSerializer(serializers.ModelSerializer):
- class Meta:
- model = Achievement
- exclude = ["id"]
- class SavedEventSerializer(serializers.ModelSerializer):
- class Meta:
- model = SavedEvent
- exclude = ["id"]
- class SavedSportsmanSerializer(serializers.ModelSerializer):
- class Meta:
- model = SavedSportsman
- exclude = ["id"]
- class BlockedSportsmanSerializer(serializers.ModelSerializer):
- class Meta:
- model = BlockedSportsman
- exclude = ["id"]
- class ParticipantSerializer(serializers.ModelSerializer):
- class Meta:
- model = Participant
- exclude = ["id"]
- class BrowseEventSerializer(serializers.ModelSerializer):
- class Meta:
- model = BrowseEvent
- exclude = ["id"]
- class BrowseSportsmanSerializer(serializers.ModelSerializer):
- class Meta:
- model = BrowseSportsman
- exclude = ["id"]
|