views:

205

answers:

2

I am using custom permissions in my Django models like this:

class T21Turma(models.Model):
    class Meta:
        permissions = (("can_view_boletim", "Can view boletim"),
                       ("can_view_mensalidades", "Can view mensalidades"),)

The problem is that when I add a permission to the list it doesn't get added to the auth_permission table when I run syncdb. What am I doing wrong. If it makes any difference I am using south for database migrations.

A: 

Maybe a stupid question, but have you runt manage.py syncdb?

Bloeper
Oops forgot to add that to my question. Yes I'm running syncdb.
+4  A: 

South does not track django.contrib.auth permissions. See ticket #211 for more information.

One of the comments on the ticket suggests that using the --all option on syncdb may solve the problem.

Daniel
Sounds like exactly my problem except that I can't get the --all switch to work with syncdb nor do I find the switch documented anywhere.
This worked after I upgraded to south 0.6.2 (I was running 0.5) previously.