summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Long <indirecthit@gmail.com>2006-09-23 17:35:37 +0000
committerChristopher Long <indirecthit@gmail.com>2006-09-23 17:35:37 +0000
commit13d039ddabc79113bb319a668a8283097de4d165 (patch)
tree3a3e4b96fde4a59b81847e294a57026a4f0e5715
parentaa6725cb07049fa2dd6da1a8f7923ae74a851d96 (diff)
downloaddjango-13d039ddabc79113bb319a668a8283097de4d165.tar.gz
[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
git-svn-id: http://code.djangoproject.com/svn/django/branches/per-object-permissions@3809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/auth/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py
index 1210bf0544..c00e52647c 100644
--- a/django/contrib/auth/models.py
+++ b/django/contrib/auth/models.py
@@ -88,7 +88,7 @@ class RowLevelPermissionManager(models.Manager):
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):