Conditions | 1 |
Total Lines | 6 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | from django.db import migrations |
||
18 | def backwards(apps, schema_editor): |
||
19 | Group = apps.get_model('auth', 'Group') |
||
20 | Permission = apps.get_model('auth', 'Permission') |
||
21 | tester = Group.objects.get(name='Tester') |
||
22 | app_perms = Permission.objects.filter(content_type__app_label__contains='bugs') |
||
23 | tester.permissions.remove(*app_perms) |
||
24 | |||
35 |