On Thu, Oct 28, 2010 at 8:12 PM, Narciso Oceguera <narc...@sih.cu> wrote: > 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.
I can't reproduce your problem. The model you provided synchronizes fine for me, and permissions are added as expected. Yours, Russ Magee %-) -- 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.