Hi, This is my first time working with groups and permissions. I'm trying to bulk set permissions on a group:
apns_users, created = Group.objects.get_or_create(name='APNS Users') if created: # set permissions permissions = Permission.objects.filter(codename__in=['add_app','change_app','delete_app','change_notification','delete_notification','send_notification']) apns_users.permissions.add(permissions) but the last line generates the following error: Traceback (most recent call last): File "<console>", line 1, in <module> File "/Users/eric/working/rfapns/lib/python2.6/site-packages/Django-1.1.1-py2.6.egg/django/db/models/fields/related.py", line 430, in add self._add_items(self.source_col_name, self.target_col_name, *objs) File "/Users/eric/working/rfapns/lib/python2.6/site-packages/Django-1.1.1-py2.6.egg/django/db/models/fields/related.py", line 497, in _add_items [self._pk_val] + list(new_ids)) File "/Users/eric/working/rfapns/lib/python2.6/site-packages/Django-1.1.1-py2.6.egg/django/db/backends/util.py", line 19, in execute return self.cursor.execute(sql, params) ProgrammingError: can't adapt What am I doing wrong? -- Eric Chamberlain -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.