Skip to content

Commit

Permalink
Merge pull request #994 from akhilnarang/fix-user-creation
Browse files Browse the repository at this point in the history
fix(overrides): call parent's `after_insert()` as well
  • Loading branch information
pateljannat authored Aug 27, 2024
2 parents 4b04137 + 3c90590 commit bf290bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lms/overrides/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def validate(self):
self.validate_username_duplicates()

def after_insert(self):
super().after_insert()
self.add_roles("LMS Student")

def validate_username_duplicates(self):
Expand Down

0 comments on commit bf290bb

Please sign in to comment.