Skip to content

Commit

Permalink
close #19 - add migration 0001 - mks app compatible >=django1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
cadu-leite committed Jul 22, 2016
1 parent 9d07020 commit 8cba646
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions municipios/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

dependencies = [
]

operations = [
migrations.CreateModel(
name='Municipio',
fields=[
('id_ibge', models.IntegerField(serialize=False, primary_key=True)),
('nome', models.CharField(max_length=150)),
('nome_abreviado', models.CharField(max_length=150, null=True, blank=True)),
('uf_sigla', models.CharField(max_length=2)),
],
),
migrations.CreateModel(
name='UF',
fields=[
('id_ibge', models.IntegerField(serialize=False, primary_key=True)),
('uf', models.CharField(max_length=2)),
('nome', models.CharField(max_length=20)),
('regiao', models.CharField(max_length=20)),
],
),
migrations.AddField(
model_name='municipio',
name='uf',
field=models.ForeignKey(to='municipios.UF'),
),
]
Empty file.

0 comments on commit 8cba646

Please sign in to comment.