Skip to content

Commit 91bb7c9

Browse files
committed
Check the new groups are different before update
Claimed groups can contain groups they are not relevant for our app so the first quick check is to ensure the list are different then to use a SQL query to fetch the groups of the user. Only set the groups if they are different, it avoids a SELECT of the Django ORM (called by the set()).
1 parent 9b3496d commit 91bb7c9

File tree

1 file changed

+180
-67
lines changed

1 file changed

+180
-67
lines changed

0 commit comments

Comments
 (0)