2020-06-05 11:00:54 -04:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
2012-03-27 16:26:07 -07:00
|
|
|
|
2020-06-05 11:00:54 -04:00
|
|
|
from django.db import models, migrations
|
|
|
|
import datetime
|
2012-03-27 16:26:07 -07:00
|
|
|
|
|
|
|
|
2020-06-05 11:00:54 -04:00
|
|
|
class Migration(migrations.Migration):
|
2012-03-27 16:26:07 -07:00
|
|
|
|
2020-06-05 11:00:54 -04:00
|
|
|
dependencies = [
|
|
|
|
('rss_feeds', '0001_initial'),
|
|
|
|
]
|
2012-03-27 16:26:07 -07:00
|
|
|
|
2020-06-05 11:00:54 -04:00
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='PushSubscription',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
|
|
('hub', models.URLField(db_index=True)),
|
|
|
|
('topic', models.URLField(db_index=True)),
|
|
|
|
('verified', models.BooleanField(default=False)),
|
|
|
|
('verify_token', models.CharField(max_length=60)),
|
|
|
|
('lease_expires', models.DateTimeField(default=datetime.datetime.now)),
|
|
|
|
('feed', models.OneToOneField(related_name=b'push', to='rss_feeds.Feed')),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
},
|
|
|
|
bases=(models.Model,),
|
|
|
|
),
|
|
|
|
]
|