ojuso-map/apps/map/migrations/0001_initial.py
2017-05-21 01:47:14 +02:00

48 lines
2.2 KiB
Python

# -*- 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)),
],
),
]