Update map app (location, migrations and templates)
This commit is contained in:
47
apps/map/migrations/0001_initial.py
Normal file
47
apps/map/migrations/0001_initial.py
Normal file
@ -0,0 +1,47 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.1 on 2017-05-19 21:42
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.conf import settings
|
||||
import django.contrib.gis.db.models.fields
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
import django_countries.fields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='CaseStudy',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('location', django.contrib.gis.db.models.fields.PointField(srid=4326)),
|
||||
('project_name', models.CharField(max_length=128)),
|
||||
('supply_chain', models.CharField(choices=[('A', 'Option A'), ('B', 'Option B')], max_length=1)),
|
||||
('generation_type', models.CharField(choices=[('W', 'Wind'), ('S', 'Solar')], max_length=1)),
|
||||
('associated_companies', models.CharField(max_length=128)),
|
||||
('financiers', models.CharField(max_length=128)),
|
||||
('important_lenders', models.CharField(max_length=128)),
|
||||
('country', django_countries.fields.CountryField(max_length=2)),
|
||||
('affects_indigenous', models.BooleanField()),
|
||||
('affects_indigenous_reason', models.TextField()),
|
||||
('proposed_start', models.DateField()),
|
||||
('proposed_completion', models.DateField()),
|
||||
('description', models.TextField()),
|
||||
('link_to_forum', models.URLField()),
|
||||
('image', models.ImageField(upload_to='')),
|
||||
('references', models.TextField()),
|
||||
('commodities', models.CharField(max_length=128)),
|
||||
('like_to_engage_developer', models.BooleanField()),
|
||||
('like_to_engage_investors', models.BooleanField()),
|
||||
('author', models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
),
|
||||
]
|
20
apps/map/migrations/0002_auto_20170520_0139.py
Normal file
20
apps/map/migrations/0002_auto_20170520_0139.py
Normal file
@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.1 on 2017-05-20 01:39
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='casestudy',
|
||||
old_name='location',
|
||||
new_name='geom',
|
||||
),
|
||||
]
|
0
apps/map/migrations/__init__.py
Normal file
0
apps/map/migrations/__init__.py
Normal file
Reference in New Issue
Block a user