Re: Group Permissions programmatically

2017-07-31 Thread Frank Semaganga
Hello Thank you for the suggestion! Let me adapt the approach and see. Regards Sent from my iPhone > On Jul 31, 2017, at 20:28, Александр Христюхин (roboslone) > wrote: > > Hi, > > Why don't you use the same approach that is generally used with users? I mean > you

Re: Group Permissions programmatically

2017-07-31 Thread Александр Христюхин (roboslone)
Hi, Why don't you use the same approach that is generally used with users? I mean you connect a signal to your User/Group model, that changes permission for created objects, like so: @receiver(post_save, sender=settings.AUTH_USER_MODEL) def create_user_permissions(instance=None, created=None,

Group Permissions programmatically

2017-07-31 Thread Frank Semaganga
Hi! I am having a challenge . My aim is to be able to assign some group permissions when the group is created. In admin.py I have a custom GroupAdmin class on which I have the function save customized but the challenge is everything else get saved and reflected on admin page including user