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

123456789
  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', 'user_id']