ojuso-map/apps/map/migrations/0071_point_of_interest.py

35 lines
1.4 KiB
Python
Raw Normal View History

2018-10-12 22:50:27 +00:00
# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-10-12 22:48
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_extensions.db.fields
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('map', '0070_remove_null_from_text_fields_schema'),
]
operations = [
migrations.CreateModel(
name='PointOfInterest',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('date_created', models.DateTimeField(auto_now_add=True)),
('slug', django_extensions.db.fields.AutoSlugField(blank=True, editable=False, populate_from=['entry_name'])),
('approved', models.BooleanField(default=False)),
('title', models.CharField(max_length=128)),
('location', django.contrib.gis.db.models.fields.PointField(srid=4326)),
('synopsis', models.TextField()),
('link', models.URLField()),
('author', models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
],
),
]