Commits

Anonymous committed 72d8475

[per-object-permissions] Fixes the bug described by schotm where group permissions were causing a db error when show_all_rows was set to false

  • Participants
  • Parent commits fff0f1c
  • Branches per-object-permissions

Comments (0)

Files changed (1)

django/contrib/auth/models.py

                                                   owner_id__in=user_group_list,
                                                   model_ct = model_ct
                                                   ).values('model_id')
-            id_list.append([o['model_id'] for o in group_model_ids])
+            id_list=id_list + [o['model_id'] for o in group_model_ids]
         return id_list
 
 class RowLevelPermission(models.Model):