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 223B

5 years ago
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', 'pub_start', 'pub_end')