mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Fix database and add some view
This commit is contained in:
24
election/migrations/0003_auto_20161205_2235.py
Normal file
24
election/migrations/0003_auto_20161205_2235.py
Normal file
@ -0,0 +1,24 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('election', '0002_candidate_program'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='candidate',
|
||||
name='responsability',
|
||||
field=models.ForeignKey(verbose_name='responsability', to='election.Responsability', related_name='candidate'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='responsability',
|
||||
name='election',
|
||||
field=models.ForeignKey(verbose_name='election', to='election.Election', related_name='responsability'),
|
||||
),
|
||||
]
|
20
election/migrations/0004_election_electors.py
Normal file
20
election/migrations/0004_election_electors.py
Normal file
@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('subscription', '0003_auto_20160902_1914'),
|
||||
('election', '0003_auto_20161205_2235'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='election',
|
||||
name='electors',
|
||||
field=models.ManyToManyField(verbose_name='electors', related_name='election', blank=True, to='subscription.Subscriber'),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user