summaryrefslogtreecommitdiff
path: root/app/links/migrations/0001_initial.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/links/migrations/0001_initial.py')
-rw-r--r--app/links/migrations/0001_initial.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/app/links/migrations/0001_initial.py b/app/links/migrations/0001_initial.py
new file mode 100644
index 0000000..1a50e8e
--- /dev/null
+++ b/app/links/migrations/0001_initial.py
@@ -0,0 +1,33 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.9 on 2015-12-22 09:22
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+import taggit.managers
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('taggit', '0002_auto_20150616_2121'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Link',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('title', models.CharField(max_length=400)),
+ ('url', models.CharField(max_length=400)),
+ ('description', models.TextField(blank=True, null=True)),
+ ('pub_date', models.DateTimeField()),
+ ('status', models.IntegerField(choices=[(0, 'Private'), (1, 'Public')], default=0)),
+ ('tags', taggit.managers.TaggableManager(blank=True, help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')),
+ ],
+ options={
+ 'ordering': ['-pub_date'],
+ },
+ ),
+ ]