Skip to content

Commit

Permalink
fix lectures creating errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlukas committed Jan 21, 2025
1 parent 17849e1 commit c320f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def create(self, validated_data: dict) -> Lecture:
and attendance_data["attendancestate"].default
and membership.prepaid_cnt > 0
):
attendance_data.paid = True
attendance_data["paid"] = True
membership.prepaid_cnt = membership.prepaid_cnt - 1
membership.save()
Attendance.objects.create(client=client, lecture=instance, **attendance_data)
Expand Down

0 comments on commit c320f4b

Please sign in to comment.