mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Refactored has_voted
This commit is contained in:
25
election/migrations/0006_auto_20161223_2315.py
Normal file
25
election/migrations/0006_auto_20161223_2315.py
Normal file
@ -0,0 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('election', '0005_auto_20161223_2240'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='role',
|
||||
name='has_voted',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='election',
|
||||
name='voters',
|
||||
field=models.ManyToManyField(to=settings.AUTH_USER_MODEL, verbose_name='has voted', related_name='has_voted'),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user