mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 15:11:27 +00:00
perf: update date_updated when update user roles
This commit is contained in:
@@ -321,6 +321,7 @@ class RoleManager(models.Manager):
|
||||
add_ids = role_ids - old_ids
|
||||
self.remove(*del_ids)
|
||||
self.add(*add_ids)
|
||||
self.user.save(update_fields=['date_updated'])
|
||||
|
||||
def remove(self, *roles):
|
||||
if not roles:
|
||||
|
Reference in New Issue
Block a user