Commit ec4f129
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 77748cb commit ec4f129
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
385 | 392 | | |
386 | 393 | | |
387 | 394 | | |
| |||
0 commit comments