Skip to content

Commit

Permalink
user can be student and teacher
Browse files Browse the repository at this point in the history
  • Loading branch information
Re-Krass committed Jun 20, 2018
1 parent 4b2a691 commit 1ac2c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydl_api/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def save(self, *args, **kwargs):
if self.is_student:
student = Student(user = self)
student.save()
elif self.is_teacher:
if self.is_teacher:
teacher = Teacher(user = self)
teacher.save()

Expand Down

0 comments on commit 1ac2c39

Please sign in to comment.