BOM-1124
Direct assignment to the forward side of a many-to-many set is deprecated Fixing this issue.
This commit is contained in:
@@ -148,5 +148,5 @@ class Command(BaseCommand):
|
||||
)
|
||||
)
|
||||
|
||||
user.groups = new_groups
|
||||
user.groups.set(new_groups)
|
||||
user.save()
|
||||
|
||||
Reference in New Issue
Block a user