Call './manage.py shell':

from django.contrib.auth.models import Permission

for perm in Permission.objects.all():
    perm.delete()

and then call './manage syncdb'

This rebuilds the permission table.

If you want it done some other way, you will probably have to wait for
the SchemaEvolution branch.
But this should be easy enough.

cyberco wrote:
> Once permissions are added to the auth_permission table it doesn't
> matter how often I invoke 'manage.py syncdb app' or 'manage.py reset
> app', stale records are never deleted. Is this normal behaviour?
>
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to