Skip to content

Commit

Permalink
fix order
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Sep 3, 2024
1 parent ef7a676 commit 96c91ff
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions codeforlife/user/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,7 @@ def get_random_username():
# pylint: disable-next=arguments-differ
def set_password(self, raw_password: t.Optional[str] = None):
super().set_password(raw_password or self._get_random_password())
(
self.student.login_id,
self._login_id,
) = self._get_random_login_id()
self._login_id, self.student.login_id = self._get_random_login_id()

Check warning on line 535 in codeforlife/user/models/user.py

View check run for this annotation

Codecov / codecov/patch

codeforlife/user/models/user.py#L535

Added line #L535 was not covered by tests


# pylint: disable-next=missing-class-docstring,too-few-public-methods
Expand Down

0 comments on commit 96c91ff

Please sign in to comment.