2018-03-19 06:11:04 -04:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Generated by Django 1.11.10 on 2018-03-19 01:18
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
import django.utils.timezone
|
|
|
|
import model_utils.fields
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
2023-08-10 02:52:37 -04:00
|
|
|
("entries", "0011_auto_20171120_1108"),
|
2018-03-19 06:11:04 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2023-08-10 02:52:37 -04:00
|
|
|
name="Webmention",
|
2018-03-19 06:11:04 -04:00
|
|
|
fields=[
|
2023-08-10 02:52:37 -04:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"created",
|
|
|
|
model_utils.fields.AutoCreatedField(
|
|
|
|
default=django.utils.timezone.now,
|
|
|
|
editable=False,
|
|
|
|
verbose_name="created",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"modified",
|
|
|
|
model_utils.fields.AutoLastModifiedField(
|
|
|
|
default=django.utils.timezone.now,
|
|
|
|
editable=False,
|
|
|
|
verbose_name="modified",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("source", models.CharField(max_length=255)),
|
|
|
|
("target", models.CharField(max_length=255)),
|
|
|
|
(
|
|
|
|
"state",
|
|
|
|
models.CharField(
|
|
|
|
choices=[
|
|
|
|
("p", "pending"),
|
|
|
|
("v", "valid"),
|
|
|
|
("i", "invalid"),
|
|
|
|
("d", "deleted"),
|
|
|
|
],
|
|
|
|
default="p",
|
|
|
|
max_length=1,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"entry",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
related_name="mentions",
|
|
|
|
to="entries.Entry",
|
|
|
|
),
|
|
|
|
),
|
2018-03-19 06:11:04 -04:00
|
|
|
],
|
|
|
|
options={
|
2023-08-10 02:52:37 -04:00
|
|
|
"default_related_name": "mentions",
|
2018-03-19 06:11:04 -04:00
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
2023-08-10 02:52:37 -04:00
|
|
|
name="webmention",
|
|
|
|
unique_together=set([("source", "target")]),
|
2018-03-19 06:11:04 -04:00
|
|
|
),
|
|
|
|
]
|