Skip to content

Commit

Permalink
Remove pkg_notes_formatted completely.
Browse files Browse the repository at this point in the history
  • Loading branch information
TkTech committed Aug 25, 2015
1 parent 5cfc6c6 commit 0995d45
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ckan/lib/plugins.py
Expand Up @@ -261,8 +261,6 @@ def show_package_schema(self):
return ckan.logic.schema.default_show_package_schema()

def setup_template_variables(self, context, data_dict):
from ckan.lib.helpers import render_markdown

authz_fn = logic.get_action('group_list_authz')
c.groups_authz = authz_fn(context, data_dict)
data_dict.update({'available_only': True})
Expand All @@ -276,8 +274,8 @@ def setup_template_variables(self, context, data_dict):
c.is_sysadmin = ckan.authz.is_sysadmin(c.user)

if c.pkg:
# Used by the disqus plugin
c.related_count = c.pkg.related_count
c.pkg_notes_formatted = render_markdown(c.pkg.notes)

if context.get('revision_id') or context.get('revision_date'):
if context.get('revision_id'):
Expand Down

0 comments on commit 0995d45

Please sign in to comment.