Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Fix student adding as lecturer
Browse files Browse the repository at this point in the history
  • Loading branch information
adilmohak authored Feb 6, 2024
1 parent bce9774 commit 5be9ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accounts/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class Meta(UserCreationForm.Meta):
@transaction.atomic()
def save(self, commit=True):
user = super().save(commit=False)
user.is_lecturer = True
user.is_student = True
user.first_name = self.cleaned_data.get("first_name")
user.last_name = self.cleaned_data.get("last_name")
user.gender = self.cleaned_data.get("gender")
Expand Down

0 comments on commit 5be9ef2

Please sign in to comment.