[Update] 修改命令执行 (#2148)

* [Update] 修改命令执行

* Update forms.py
This commit is contained in:
老广
2018-12-11 20:32:55 +08:00
committed by GitHub
parent 6a23983331
commit 9c0f00f625
6 changed files with 49 additions and 19 deletions

View File

@@ -260,8 +260,6 @@ class User(AbstractUser):
self.role = 'Admin'
self.is_active = True
super().save(*args, **kwargs)
if current_org and current_org.is_real():
self.orgs.add(current_org.id)
@property
def private_token(self):