Re: custom permission in admin models

2009-10-06 Thread Bogdan I. Bursuc
Ok, I think your answer is here on creating permissions: http://docs.djangoproject.com/en/dev/topics/auth/#id1 in the ModelAdmin, override the `save_model` method and check the current user permission: request.user.has_perm('permission_name') for more on checking permission see thi

Re: custom permission in admin models

2009-10-06 Thread elminio
not exactly, for example I want to make custom permission which enables user to change one field in model but only to 5 letter length word while other users may change that field to 6 letters length word. Thats sily example but in some cases it may be useful. On Oct 6, 10:19 am, "Bogdan I. Bursu

Re: custom permission in admin models

2009-10-06 Thread Bogdan I. Bursuc
i think you want to create a group. On Tue, 2009-10-06 at 01:05 -0700, elminio wrote: > Hi, > In admin Panel I can choose groups and give them specified > permissions. For example > > admin | log entry | can add log entry > > And I would like to create my own type of permission which for exampl