I've been using fixtures to create test data, but how do I set user
permissions that aren't brittle? If I use

./manage.py dumpdata

it dumps the user_permissions as a list of ids of permissions the user
has. The problem is, as I add more apps/permissions to my project, those
ids are likely to change and my test data will end up invalid.

Is there some way to specify a permission by name in a fixture or some
easier way to do this that I'm missing?

Todd


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to