event_gallery.py 220 B

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