Skip to content

Commit

Permalink
Modification de la gestion des droits dans les groupes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmatton committed Sep 17, 2016
1 parent aae058f commit c4beda2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions sigma_core/migrations/0028_group_need_validation_to_join.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-09-17 10:49
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('sigma_core', '0027_auto_20160917_1122'),
]

operations = [
migrations.AddField(
model_name='group',
name='need_validation_to_join',
field=models.BooleanField(default=False),
),
]
1 change: 1 addition & 0 deletions sigma_core/models/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Group(models.Model):
description = models.TextField(blank=True)
is_protected = models.BooleanField(default=False) # if True, the Group cannot be deleted
can_anyone_join = models.BooleanField(default=False) #if True, people don't need invitation
need_validation_to_join = models.BooleanField(default=False)

# Related fields:
# - invited_users (model User)
Expand Down

0 comments on commit c4beda2

Please sign in to comment.