Commit 85265b14 authored by Renán Sosa Guillen's avatar Renán Sosa Guillen

change in models

parent d718e1a6
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
# -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-22 07:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalog', '0003_auto_20180521_2110'),
]
operations = [
migrations.CreateModel(
name='Polygon',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=50, verbose_name='Polygon Name')),
('json_info', models.TextField(default='', verbose_name='JSON Info')),
],
),
migrations.RemoveField(
model_name='city',
name='state',
),
migrations.DeleteModel(
name='City',
),
migrations.DeleteModel(
name='State',
),
]
...@@ -10,13 +10,6 @@ class Platform(models.Model): ...@@ -10,13 +10,6 @@ class Platform(models.Model):
acronym = models.CharField(max_length=16) acronym = models.CharField(max_length=16)
class State(models.Model): class Polygon(models.Model):
name = models.CharField(max_length=50, blank=True) name = models.CharField(verbose_name="Polygon Name", max_length=50)
ent_key = models.CharField(verbose_name='Entity Key', max_length=4, blank=True) json_info = models.TextField(verbose_name="JSON Info", default='')
\ No newline at end of file
class City(models.Model):
name = models.CharField(max_length=50, blank=True)
city_key = models.CharField(max_length=4, blank=True)
coordinates = models.TextField(verbose_name='City Coordinates', default='', blank=True)
state = models.ForeignKey(State, on_delete=models.CASCADE, default='')
\ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment