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:
parent
951aa53ea7
commit
459d7349b7
2 changed files with 21 additions and 1 deletions
17
users/migrations/0012_auto_20190925_0125.py
Normal file
17
users/migrations/0012_auto_20190925_0125.py
Normal 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'},
|
||||
),
|
||||
]
|
|
@ -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")
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue