from rest_framework import serializers
from attendance.models import Lecture, Attendance
import datetime

class GETSerializer(serializers.ModelSerializer):
	class Meta:
		model=Lecture
		fields=('id', 'time')

class POSTSerializer(serializers.ModelSerializer):
	class Meta:
		model=Attendance
		fields=('student', 'lecture')

3e45dce5625164c07ac55ff5451440532f25310e
<mask token>

<mask token>


class POSTSerializer(serializers.ModelSerializer):


    class Meta:
        model = Attendance
        fields = 'student', 'lecture'

<mask token>


class GETSerializer(serializers.ModelSerializer):


    class Meta:
        model = Lecture
        fields = 'id', 'time'


class POSTSerializer(serializers.ModelSerializer):


    class Meta:
        model = Attendance
        fields = 'student', 'lecture'

from rest_framework import serializers
from attendance.models import Lecture, Attendance
import datetime


class GETSerializer(serializers.ModelSerializer):


    class Meta:
        model = Lecture
        fields = 'id', 'time'


class POSTSerializer(serializers.ModelSerializer):


    class Meta:
        model = Attendance
        fields = 'student', 'lecture'

from rest_framework import serializers
from attendance.models import Lecture, Attendance
import datetime

class GETSerializer(serializers.ModelSerializer):
	class Meta:
		model=Lecture
		fields=('id', 'time')

class POSTSerializer(serializers.ModelSerializer):
	class Meta:
		model=Attendance
		fields=('student', 'lecture')
