49 lines
1.4 KiB
Python
49 lines
1.4 KiB
Python
|
# -*- coding: utf-8 -*-
|
||
|
# Generated by Django 1.9.4 on 2018-06-05 15:44
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Glos',
|
||
|
fields=[
|
||
|
('g_id', models.IntegerField(primary_key=True, serialize=False)),
|
||
|
('liczba', models.IntegerField()),
|
||
|
],
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='Komitet',
|
||
|
fields=[
|
||
|
('name', models.CharField(max_length=255)),
|
||
|
('kw_id', models.IntegerField(primary_key=True, serialize=False)),
|
||
|
],
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='Okreg',
|
||
|
fields=[
|
||
|
('name', models.CharField(max_length=255)),
|
||
|
('o_id', models.IntegerField(primary_key=True, serialize=False)),
|
||
|
],
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='glos',
|
||
|
name='komitet',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ordynacja.Komitet'),
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='glos',
|
||
|
name='okreg',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ordynacja.Okreg'),
|
||
|
),
|
||
|
]
|