from rest_framework import serializers

from .models import AuthenticationSession


class AuthenticationSessionSerializer(serializers.ModelSerializer):
    class Meta:
        model = AuthenticationSession
        fields = ('application', 'external_session_id', 'session_photo_bytes', 'flag', 'start_time', 'end_time')

from rest_framework import serializers

from .models import AuthenticationSession


class AuthenticationSessionSerializer(serializers.ModelSerializer):
    class Meta:
        model = AuthenticationSession
        fields = ('application', 'external_session_id', 'session_photo_bytes', 'flag')

Change serializer to omit dates
Change serializer to omit dates

  from rest_framework import serializers
  
  from .models import AuthenticationSession
  
  
  class AuthenticationSessionSerializer(serializers.ModelSerializer):
      class Meta:
          model = AuthenticationSession
-         fields = ('application', 'external_session_id', 'session_photo_bytes', 'flag', 'start_time', 'end_time')
+         fields = ('application', 'external_session_id', 'session_photo_bytes', 'flag')
  
Change serializer to omit dates
## Code Before:
from rest_framework import serializers

from .models import AuthenticationSession


class AuthenticationSessionSerializer(serializers.ModelSerializer):
    class Meta:
        model = AuthenticationSession
        fields = ('application', 'external_session_id', 'session_photo_bytes', 'flag', 'start_time', 'end_time')

## Instruction:
Change serializer to omit dates
## Code After:
from rest_framework import serializers

from .models import AuthenticationSession


class AuthenticationSessionSerializer(serializers.ModelSerializer):
    class Meta:
        model = AuthenticationSession
        fields = ('application', 'external_session_id', 'session_photo_bytes', 'flag')
