Skip to content

attendence workflow #37

@infohata

Description

@infohata

CourseGroupSession model in Academy

  • FK to CourseGroup
  • FK to CourseTopic null
  • date DateField null
  • stream_url URLField null
    unique together date, course_group

Attendance model in Academy

  • FK to CourseGroupMember
  • FK to CourseGroupSession
  • checkin DateTimeField
  • checkout DateTimeField

API view to check-in for given CourseGroup

  • find if current user is a CourseGroupMember of the given CourseGroup
  • find if CourseGroupSession is happening today for the CourseGroup
  • if not exists, create Attendance instance with checkin value of now for CourseGroupMember and CourseGroupSession instances

API view to chech-out for given Attendance

  • test_func that user is CourseGroupMember of the given Attendance record
  • set checkout to now

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions