Skip to content

Commit

Permalink
Changing AdminApplyVacationForUserSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
maayarosama committed Apr 4, 2024
1 parent 5db4002 commit b0a1279
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/cshr/serializers/vacations.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""This file will containes all vacation serializers."""
from rest_framework.serializers import (
ModelSerializer,
DateTimeField,
SerializerMethodField,
)
from cshr.models.users import User
Expand Down Expand Up @@ -254,5 +255,5 @@ class VacationBalanceAdjustmentSerializer(serializers.Serializer):

class AdminApplyVacationForUserSerializer(serializers.Serializer):
reason = serializers.CharField()
from_date = serializers.DateField()
end_date = serializers.DateField()
from_date = serializers.DateTimeField()
end_date = serializers.DateTimeField()

0 comments on commit b0a1279

Please sign in to comment.