mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-07-02 15:08:22 +00:00
perf: update account update
This commit is contained in:
@@ -233,8 +233,7 @@ class Account(AbsConnectivity, LabeledMixin, BaseAccount, JSONFilterMixin):
|
||||
return escape(value)
|
||||
|
||||
def update_last_login_date(self):
|
||||
self.date_last_login = timezone.now()
|
||||
self.save(update_fields=['date_last_login'])
|
||||
Account.objects.filter(pk=self.pk).update(date_last_login=timezone.now())
|
||||
|
||||
|
||||
def replace_history_model_with_mixin():
|
||||
|
||||
Reference in New Issue
Block a user