Update 13-write-solid-python-codes-part-2.md
修改`deactivate`函数`is_active`为`False`
This commit is contained in:
parent
358e4ccb6b
commit
f884c6d9c6
|
@ -49,7 +49,7 @@ class User(Model):
|
|||
def deactivate(self):
|
||||
"""停用当前用户
|
||||
"""
|
||||
self.is_active = True
|
||||
self.is_active = False
|
||||
self.save()
|
||||
|
||||
class Admin(User):
|
||||
|
|
Loading…
Reference in New Issue