You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
I am planning to drop unique key constraint on "name" column of auth_group table.
Any possible issues it may cause?
thanks
Karen Tracey
unread,
Jan 19, 2010, 9:03:24 AM1/19/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Yes. With the unique constraint in place, .get() by name is guaranteed to either find a single group or none with a matching name. Removing the unique constraint removes that guarantee, opening up the possibility that .get() by name will raise MultipleObjectsReturned.
Karen
zweb
unread,
Jan 19, 2010, 11:39:13 AM1/19/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Since all my looks up are by id and I am not using admin, I should be ok. I was not sure if django auth framework used it internally anywhere.