|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +# Generated by Django 1.11.11 on 2018-04-25 18:12 |
| 3 | +from __future__ import unicode_literals |
| 4 | + |
| 5 | +from django.db import migrations, models |
| 6 | +import django_countries.fields |
| 7 | + |
| 8 | + |
| 9 | +class Migration(migrations.Migration): |
| 10 | + |
| 11 | + initial = True |
| 12 | + |
| 13 | + dependencies = [ |
| 14 | + ] |
| 15 | + |
| 16 | + operations = [ |
| 17 | + migrations.CreateModel( |
| 18 | + name='Conference', |
| 19 | + fields=[ |
| 20 | + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
| 21 | + ('year', models.PositiveIntegerField()), |
| 22 | + ('city', models.CharField(blank=True, max_length=200, null=True)), |
| 23 | + ('country', django_countries.fields.CountryField(blank=True, max_length=2, null=True)), |
| 24 | + ('address', models.TextField(blank=True, null=True)), |
| 25 | + ('from_date', models.DateField(blank=True, null=True)), |
| 26 | + ('to_date', models.DateField(blank=True, null=True)), |
| 27 | + ('max_attendees', models.PositiveIntegerField(blank=True, null=True)), |
| 28 | + ('type', models.IntegerField(choices=[(0, 'International'), (1, 'National')])), |
| 29 | + ], |
| 30 | + ), |
| 31 | + ] |
0 commit comments