Add instructor as an enrolled user to a course. Also change frontend to use instructor role instead of teacher
This commit is contained in:
@@ -109,6 +109,7 @@ def create_course():
|
||||
|
||||
c = Course()
|
||||
c.from_dict(data)
|
||||
u.enroll(c)
|
||||
db.session.add(c)
|
||||
db.session.commit()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user