adjust registered by to managed by on db aslo remove url and api key on adding sites for gm
This commit is contained in:
1 parent
64b37b6b6d
commit
521f36d22d
15 files changed
+112
-75
No files matched your search
@@ -108,8 +108,8 @@ class Command(BaseCommand):
|
||||
if not staff:
|
||||
return
|
||||
moved_sites = Site.objects.filter(user=staff).update(user=gm)
|
||||
moved_active = ActiveSite.objects.filter(registered_by=staff).update(
|
||||
registered_by=gm
|
||||
moved_active = ActiveSite.objects.filter(managed_by=staff).update(
|
||||
managed_by=gm
|
||||
)
|
||||
ApiKey.objects.filter(user=staff).delete()
|
||||
staff.delete()
|
||||
|
||||
Reference in new issue
Block a user