mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-12 21:56:02 +00:00
Fix database and add some view
This commit is contained in:
1 parent
d685e9ba29
commit
135fa00e25
7 files changed
+92
-5
No files matched your search
@@ -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'),
|
||||
),
|
||||
]
|
||||
@@ -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