From 666395edef05bad8bf1d8195ea4d462555cdb668 Mon Sep 17 00:00:00 2001 From: Jorran de Wit <jorrandewit@outlook.com> Date: Sat, 29 Jul 2017 08:21:43 +0200 Subject: [PATCH] Test migrations complete --- comments/admin.py | 2 +- comments/migrations/0017_auto_20170729_0717.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/comments/admin.py b/comments/admin.py index c330e4ff1..25c767aa4 100644 --- a/comments/admin.py +++ b/comments/admin.py @@ -18,7 +18,7 @@ def comment_is_vetted(comment): class CommentAdmin(GuardedModelAdmin): list_display = (comment_opening, 'author', 'date_submitted', comment_is_vetted) date_hierarchy = 'date_submitted' - list_filter = ('status', 'content_type',) + list_filter = ('status',) comment_is_vetted.boolean = True diff --git a/comments/migrations/0017_auto_20170729_0717.py b/comments/migrations/0017_auto_20170729_0717.py index ebf8e864b..ba51467ff 100644 --- a/comments/migrations/0017_auto_20170729_0717.py +++ b/comments/migrations/0017_auto_20170729_0717.py @@ -76,10 +76,6 @@ def migrate_comments_to_generic_relations(apps, schema_editor): """ forward() Comment = apps.get_model('comments', 'Comment') - # Report = apps.get_model('submissions', 'Report') - # Submission = apps.get_model('submissions', 'Submission') - # Commentary = apps.get_model('commentaries', 'Commentary') - # ThesisLink = apps.get_model('theses', 'ThesisLink') User = get_user_model() all_comments = Comment.objects.all() -- GitLab