thank you for your help!

Luis P. Mendes

Chris Long escreveu:
> To add permissions.
> For user: user.user_permissions.add(perm)
> (I think, don't have the chance to double check) For group:
> group.permissions.add(perm)
> 
> For your question, the permission table contains the codename, verbose
> name and content type of the object. In most cases, you could probably
> get away without having the contenttype, but it might be a good idea to
> put in there if you the permission is only to be used with that
> specific model. So both are right, just depends on how you want to use
> the permission. Also, probably a good idea to have the codename of the
> form: app_name.code_name, it's the format used for the default
> permissions and might make your life easier to keep it in the same
> format.
> 
> Chris
> 

--~--~---------~--~----~------------~-------~--~----~
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