3
0
Fork 0
mirror of https://github.com/nanoy42/coope synced 2024-11-25 04:43:11 +00:00

Add permissions to change groups

This commit is contained in:
Yoann Pétri 2019-09-25 01:25:27 +02:00
parent 951aa53ea7
commit 459d7349b7
2 changed files with 21 additions and 1 deletions

View file

@ -0,0 +1,17 @@
# Generated by Django 2.1 on 2019-09-24 23:25
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0011_auto_20190627_2302'),
]
operations = [
migrations.AlterModelOptions(
name='profile',
options={'permissions': (('can_generate_invoices', 'Can generate invocies'), ('can_change_user_perm', 'Can change user groups')), 'verbose_name': 'Profil'},
),
]

View file

@ -112,7 +112,10 @@ class Profile(models.Model):
"""
class Meta:
verbose_name = "Profil"
permissions = (('can_generate_invoices', 'Can generate invocies'),)
permissions = (
('can_generate_invoices', 'Can generate invocies'),
('can_change_user_perm', 'Can change user groups'),
)
user = models.OneToOneField(User, on_delete=models.CASCADE, verbose_name="Utilisateur")
"""