Lösungen der Aufgaben vom Kurs MEIM1 - Web Engineering von Prof. Hofmann
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 242B

12345678
  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')