mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
Election right update
This commit is contained in:
19
election/migrations/0002_role_max_choice.py
Normal file
19
election/migrations/0002_role_max_choice.py
Normal file
@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('election', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='role',
|
||||
name='max_choice',
|
||||
field=models.IntegerField(verbose_name='max choice', default=1),
|
||||
),
|
||||
]
|
35
election/migrations/0003_auto_20161219_1832.py
Normal file
35
election/migrations/0003_auto_20161219_1832.py
Normal file
@ -0,0 +1,35 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0016_auto_20161212_1922'),
|
||||
('election', '0002_role_max_choice'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='election',
|
||||
name='candidature_group',
|
||||
field=models.ManyToManyField(related_name='candidate_election', blank=True, verbose_name='candidature group', to='core.Group'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='election',
|
||||
name='edit_groups',
|
||||
field=models.ManyToManyField(related_name='editable_election', blank=True, verbose_name='edit group', to='core.Group'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='election',
|
||||
name='view_groups',
|
||||
field=models.ManyToManyField(related_name='viewable_election', blank=True, verbose_name='view group', to='core.Group'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='election',
|
||||
name='vote_group',
|
||||
field=models.ManyToManyField(related_name='votable_election', blank=True, verbose_name='vote group', to='core.Group'),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user