to the draft parser (incorporating patch from trunk), store the extracted country instead of trying to turn it into an ISO country code, add country and continent name models and add initial data for those, add helper function for cleaning the countries, add author country and continent charts, move the affiliation models to stats/models.py, fix a bunch of bugs. - Legacy-Id: 12846
45 lines
1.5 KiB
Python
45 lines
1.5 KiB
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('name', '0018_add_formlang_names'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='ContinentName',
|
|
fields=[
|
|
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
|
|
('name', models.CharField(max_length=255)),
|
|
('desc', models.TextField(blank=True)),
|
|
('used', models.BooleanField(default=True)),
|
|
('order', models.IntegerField(default=0)),
|
|
],
|
|
options={
|
|
'ordering': ['order', 'name'],
|
|
'abstract': False,
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='CountryName',
|
|
fields=[
|
|
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
|
|
('name', models.CharField(max_length=255)),
|
|
('desc', models.TextField(blank=True)),
|
|
('used', models.BooleanField(default=True)),
|
|
('order', models.IntegerField(default=0)),
|
|
('in_eu', models.BooleanField(default=False, verbose_name='In EU')),
|
|
('continent', models.ForeignKey(to='name.ContinentName')),
|
|
],
|
|
options={
|
|
'ordering': ['order', 'name'],
|
|
'abstract': False,
|
|
},
|
|
),
|
|
]
|