Created
October 19, 2017 05:10
-
-
Save SamsadSajid/2ee0b872a948081f8c1ef7678f2da230 to your computer and use it in GitHub Desktop.
TO: sikkhanobish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
I want to do something like this: | |
""" | |
class Meta: | |
permissions = ( | |
('view_task', 'View task'), | |
) | |
group = Group.objects.create(name='employees') | |
assign_perm('change_task', group, task) | |
user.groups.add(group) | |
user.has_perm('change_task', task) | |
""" | |
But in which directory shoul I use it? In views.py?? | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment