Merge pull request #54 from YangzhenZhao/patch-1

Update 13-write-solid-python-codes-part-2.md
This commit is contained in:
piglei 2020-10-09 21:27:15 +08:00 committed by GitHub
commit f87c45f661
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class User(Model):
def deactivate(self):
"""停用当前用户
"""
self.is_active = True
self.is_active = False
self.save()
class Admin(User):