Hi, everyone.
As documentation said, I just added the lines:
class USCitizen(models.Model):
# ...
class Meta:
permissions = (
("can_drive", "Can drive"),
("can_vote", "Can vote in elections"),
("can_drink", "Can drink alcohol"),
)
But after executing:
manage.py syncdb
I can't get my custom permission added in the permission table. I think
this is a bug because the permissions was not found in
model._meta.permission attribute ( opts.permissions ) as the signals
(syncdb) expect. These
permission were added to the model object itself.
--
You received this message because you are subscribed to the Google Groups "Django
developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-developers?hl=en.