You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

serializers.py 238B

1234567
  1. from rest_framework import serializers
  2. from .models import Notice
  3. class NoticeSerializer(serializers.ModelSerializer):
  4. class Meta:
  5. model = Notice
  6. fields = ('id' , 'notice_title','notice_text', 'pub_start', 'pub_end')