diff options
author | luxagraf <sng@luxagraf.net> | 2016-03-29 21:29:15 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2016-03-29 21:29:15 -0400 |
commit | 583afa3c67df13d4845ef07a70a159688052584c (patch) | |
tree | 58190d2dead223d23788c18f83715c20c1d62434 /app/syndication/migrations | |
parent | c626861546bc3e33b068d929174a7d478c4f2bab (diff) |
added a syndication model and way to publish to medium
Diffstat (limited to 'app/syndication/migrations')
-rw-r--r-- | app/syndication/migrations/0001_initial.py | 37 | ||||
-rw-r--r-- | app/syndication/migrations/__init__.py | 0 |
2 files changed, 37 insertions, 0 deletions
diff --git a/app/syndication/migrations/0001_initial.py b/app/syndication/migrations/0001_initial.py new file mode 100644 index 0000000..9643d51 --- /dev/null +++ b/app/syndication/migrations/0001_initial.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2016-03-29 10:07 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('contenttypes', '0002_remove_content_type_name'), + ] + + operations = [ + migrations.CreateModel( + name='Syndicate', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=200)), + ], + ), + migrations.CreateModel( + name='SyndicatedItem', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('object_id', models.PositiveIntegerField()), + ('publish_date', models.DateTimeField()), + ('status', models.CharField(blank=True, choices=[('1', 'Unsent'), ('2', 'Sent')], max_length=1, null=True)), + ('rel_link', models.CharField(blank=True, max_length=300, null=True)), + ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')), + ('syndicate', models.ManyToManyField(to='syndication.Syndicate')), + ], + ), + ] diff --git a/app/syndication/migrations/__init__.py b/app/syndication/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/app/syndication/migrations/__init__.py |