summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2018-12-16 16:19:29 +0100
committerJelle van der Waa <jelle@vdwaa.nl>2019-01-21 21:19:58 +0100
commitb911b3308e0a1741a6bec49befdf8dd89d803965 (patch)
tree10b015d2336ad23ed26c0ecfc5ea5d5989155998 /news
parentb2e321741eb4596e00b12e79bf885bc539ca53d2 (diff)
downloadarchweb-b911b3308e0a1741a6bec49befdf8dd89d803965.tar.gz
archweb-b911b3308e0a1741a6bec49befdf8dd89d803965.zip
Remove all squashed migrations
this makes it easier to upgrade to Python 3 since less on_delete lines have to be fixed.
Diffstat (limited to 'news')
-rw-r--r--news/migrations/0001_initial.py37
-rw-r--r--news/migrations/0001_squashed_0002_news_send_announce.py2
-rw-r--r--news/migrations/0002_news_send_announce.py20
3 files changed, 0 insertions, 59 deletions
diff --git a/news/migrations/0001_initial.py b/news/migrations/0001_initial.py
deleted file mode 100644
index fc6b6cfb..00000000
--- a/news/migrations/0001_initial.py
+++ /dev/null
@@ -1,37 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.db import models, migrations
-import django.db.models.deletion
-from django.conf import settings
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- migrations.swappable_dependency(settings.AUTH_USER_MODEL),
- ]
-
- operations = [
- migrations.CreateModel(
- name='News',
- fields=[
- ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('slug', models.SlugField(unique=True, max_length=255)),
- ('postdate', models.DateTimeField(verbose_name=b'post date', db_index=True)),
- ('last_modified', models.DateTimeField(editable=False, db_index=True)),
- ('title', models.CharField(max_length=255)),
- ('guid', models.CharField(max_length=255, editable=False)),
- ('content', models.TextField()),
- ('safe_mode', models.BooleanField(default=True)),
- ('author', models.ForeignKey(related_name=b'news_author', on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)),
- ],
- options={
- 'ordering': ('-postdate',),
- 'db_table': 'news',
- 'verbose_name_plural': 'news',
- 'get_latest_by': 'postdate',
- },
- bases=(models.Model,),
- ),
- ]
diff --git a/news/migrations/0001_squashed_0002_news_send_announce.py b/news/migrations/0001_squashed_0002_news_send_announce.py
index bc2e5eac..fc1ccc8b 100644
--- a/news/migrations/0001_squashed_0002_news_send_announce.py
+++ b/news/migrations/0001_squashed_0002_news_send_announce.py
@@ -9,8 +9,6 @@ import django.db.models.deletion
class Migration(migrations.Migration):
- replaces = [(b'news', '0001_initial'), (b'news', '0002_news_send_announce')]
-
initial = True
dependencies = [
diff --git a/news/migrations/0002_news_send_announce.py b/news/migrations/0002_news_send_announce.py
deleted file mode 100644
index 62c23226..00000000
--- a/news/migrations/0002_news_send_announce.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
-from django.db import models, migrations
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('news', '0001_initial'),
- ]
-
- operations = [
- migrations.AddField(
- model_name='news',
- name='send_announce',
- field=models.BooleanField(default=True),
- preserve_default=True,
- ),
- ]