Skip to content

Commit

Permalink
Merge 8b8d23f into 83ffc71
Browse files Browse the repository at this point in the history
  • Loading branch information
AnguleMathias committed Nov 15, 2018
2 parents 83ffc71 + 8b8d23f commit 4936211
Show file tree
Hide file tree
Showing 28 changed files with 290 additions and 326 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ designs/
# SQLite3
db.sqlite3

# Ignore articles/renderers for now
authors/apps/articles/renderers.py
# Admin
admin.py
.DS_Store
*.DS_Store
Binary file removed authors/.DS_Store
Binary file not shown.
Binary file removed authors/apps/.DS_Store
Binary file not shown.
48 changes: 46 additions & 2 deletions authors/apps/articles/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# Generated by Django 2.1.2 on 2018-11-06 07:54
# Generated by Django 2.1.2 on 2018-11-15 09:44

from django.conf import settings
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

initial = True

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]

operations = [
Expand All @@ -18,16 +21,57 @@ class Migration(migrations.Migration):
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(db_index=True, max_length=255)),
('body', models.TextField()),
('image', models.ImageField(blank=True, height_field=100, null=True, upload_to='photos/%Y/%m/%d/', width_field=100)),
('images', django.contrib.postgres.fields.ArrayField(base_field=models.TextField(), blank=True, default=None, null=True, size=None)),
('description', models.CharField(max_length=255)),
('slug', models.SlugField(max_length=40, unique=True)),
('tags', django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=30), blank=True, default=None, null=True, size=None)),
('time_to_read', models.IntegerField()),
('time_created', models.DateTimeField(auto_now_add=True, db_index=True)),
('time_updated', models.DateTimeField(auto_now=True, db_index=True)),
('average_rating', models.IntegerField(default=0)),
('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='articles', to=settings.AUTH_USER_MODEL)),
],
options={
'ordering': ('time_created', 'time_updated'),
},
),
migrations.CreateModel(
name='Comment',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('body', models.TextField()),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('article', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='articles.Article')),
('author', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='comments', to=settings.AUTH_USER_MODEL)),
('likes', models.ManyToManyField(blank=True, related_name='comment_likes', to=settings.AUTH_USER_MODEL)),
('parent', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='thread', to='articles.Comment')),
],
),
migrations.CreateModel(
name='CommentHistory',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('comment', models.TextField()),
('date_created', models.DateTimeField(auto_now=True)),
('parent_comment', models.ForeignKey(db_column='parent_comment', on_delete=django.db.models.deletion.CASCADE, to='articles.Comment')),
],
),
migrations.CreateModel(
name='Highlight',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('index_start', models.IntegerField(default=0)),
('index_stop', models.IntegerField()),
('highlighted_article_piece', models.CharField(blank=True, max_length=200)),
('comment', models.CharField(blank=True, max_length=200)),
('time_created', models.DateTimeField(auto_now_add=True, db_index=True)),
('time_updated', models.DateTimeField(auto_now=True, db_index=True)),
('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='highlights', to='articles.Article')),
('highlighter', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='highlights', to=settings.AUTH_USER_MODEL)),
],
options={
'ordering': ('time_updated',),
},
),
]
22 changes: 0 additions & 22 deletions authors/apps/articles/migrations/0002_article_author.py

This file was deleted.

23 changes: 0 additions & 23 deletions authors/apps/articles/migrations/0003_auto_20181107_0615.py

This file was deleted.

18 changes: 0 additions & 18 deletions authors/apps/articles/migrations/0004_article_average_rating.py

This file was deleted.

28 changes: 0 additions & 28 deletions authors/apps/articles/migrations/0005_comment.py

This file was deleted.

23 changes: 0 additions & 23 deletions authors/apps/articles/migrations/0006_commenthistory.py

This file was deleted.

27 changes: 0 additions & 27 deletions authors/apps/articles/migrations/0006_highlight.py

This file was deleted.

This file was deleted.

30 changes: 0 additions & 30 deletions authors/apps/articles/migrations/0008_auto_20181112_1055.py

This file was deleted.

20 changes: 0 additions & 20 deletions authors/apps/articles/migrations/0009_auto_20181112_1057.py

This file was deleted.

39 changes: 0 additions & 39 deletions authors/apps/articles/migrations/0010_auto_20181112_2048.py

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions authors/apps/articles/migrations/0012_merge_20181114_1252.py

This file was deleted.

Loading

0 comments on commit 4936211

Please sign in to comment.