58 lines
1.9 KiB
Python
58 lines
1.9 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.11.6 on 2018-10-12 22:48
|
|
from __future__ import unicode_literals
|
|
|
|
import django.contrib.gis.db.models.fields
|
|
import django.db.models.deletion
|
|
import django_extensions.db.fields
|
|
from django.conf import settings
|
|
from django.db import migrations
|
|
from django.db import models
|
|
|
|
|
|
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,
|
|
),
|
|
),
|
|
],
|
|
)
|
|
]
|