Ban co the lam dieu do mot cach de dang .Django  da co phan Admin de ban
quan li dieu do.
   theo cau hoi cua ban.la ban da dung admin cua django.ban chi can vao phan
quan li user roi ban tao theo user .va danh phan permission cho tung user ma
ban vua tao.
chuc ban thanh cong.
On Fri, Aug 7, 2009 at 3:15 PM, Toan Vu <quytoanlo...@gmail.com> wrote:

>
> Dear all,
>
> I've created a new application which used the default admin site of
> Django framework. I have a model which have these line of code:
> Class Meta:
> permissions = (('permission_name':'Readable human name'),)
>
> This line of code created a new permission in
> 'auth_user_user_permissions' table and I can set this new permission
> to a specified user. The problem is after I only set this permission
> to the user and I logged in by this username and the admin's home page
> shown 'You don't have permission to edit anything.'. When I set a add,
> change,. permission to this model and then It shown the app list.
>
> Could you mind show me how to add new permission like the defaul
> permission of the admin site like add, delete, change ?
>
> Cheers.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to