forked from 00dani/lemoncurry
Start implementing webmention receiving :o the status page is ugly and there's no actual verification yet, but good start at least ;)
This commit is contained in:
parent
b3fb0a8600
commit
169f0687cb
9 changed files with 154 additions and 0 deletions
39
webmention/migrations/0001_initial.py
Normal file
39
webmention/migrations/0001_initial.py
Normal file
|
@ -0,0 +1,39 @@
|
|||
# -*- 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 = [
|
||||
('entries', '0011_auto_20171120_1108'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Webmention',
|
||||
fields=[
|
||||
('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')),
|
||||
],
|
||||
options={
|
||||
'default_related_name': 'mentions',
|
||||
},
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='webmention',
|
||||
unique_together=set([('source', 'target')]),
|
||||
),
|
||||
]
|
0
webmention/migrations/__init__.py
Normal file
0
webmention/migrations/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue