From af2182a513a354b673aa73adfd837de2d6894da3 Mon Sep 17 00:00:00 2001
From: Andrew Browning <ayleph@thisshitistemp.com>
Date: Wed, 2 Mar 2016 21:05:17 -0500
Subject: [PATCH 1/2] Partial fix - 5437 Blog mediatype naming
This patch corrects the blog plugin name to match the path and
function naming.
---
mediagoblin/media_types/blog/__init__.py | 2 +-
mediagoblin/media_types/blog/views.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/mediagoblin/media_types/blog/__init__.py b/mediagoblin/media_types/blog/__init__.py
index 859c216..ee522b8 100644
a
|
b
|
from mediagoblin.media_types.blog.models import Blog, BlogPostData
|
24 | 24 | from mediagoblin.tools import pluginapi |
25 | 25 | |
26 | 26 | PLUGIN_DIR = os.path.dirname(__file__) |
27 | | MEDIA_TYPE = 'mediagoblin.media_types.blogpost' |
| 27 | MEDIA_TYPE = 'mediagoblin.media_types.blog' |
28 | 28 | |
29 | 29 | |
30 | 30 | def setup_plugin(): |
diff --git a/mediagoblin/media_types/blog/views.py b/mediagoblin/media_types/blog/views.py
index 7e796fe..7e27052 100644
a
|
b
|
def blogpost_create(request):
|
138 | 138 | return render_404(request) |
139 | 139 | |
140 | 140 | blogpost = request.db.MediaEntry() |
141 | | blogpost.media_type = 'mediagoblin.media_types.blogpost' |
| 141 | blogpost.media_type = 'mediagoblin.media_types.blog' |
142 | 142 | blogpost.title = six.text_type(form.title.data) |
143 | 143 | blogpost.description = six.text_type(cleaned_markdown_conversion((form.description.data))) |
144 | 144 | blogpost.tags = convert_to_tag_list_of_dicts(form.tags.data) |