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 = Course()
|
||||||
c.from_dict(data)
|
c.from_dict(data)
|
||||||
|
u.enroll(c)
|
||||||
db.session.add(c)
|
db.session.add(c)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ const RegisterPage = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<option value="student">Student</option>
|
<option value="student">Student</option>
|
||||||
<option value="teacher">Teacher</option>
|
<option value="instructor">Instructor</option>
|
||||||
</Form.Select>
|
</Form.Select>
|
||||||
</Col>
|
</Col>
|
||||||
</Form.Group>
|
</Form.Group>
|
||||||
|
|||||||
Reference in New Issue
Block a user