From 72f262e515fb5c4e264f34fd66493779bafb45af Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Sat, 17 Aug 2013 18:18:50 -0300 Subject: [PATCH] Updating feedzilla --- src/colab/custom_settings.py | 3 ++- src/planet/templates/feedzilla/_post_template.html | 6 ++---- src/planet/templates/feedzilla/base.html | 3 ++- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/colab/custom_settings.py b/src/colab/custom_settings.py index c25e768..e4ead34 100644 --- a/src/colab/custom_settings.py +++ b/src/colab/custom_settings.py @@ -33,7 +33,8 @@ INSTALLED_APPS = INSTALLED_APPS + ( # Feedzilla and deps 'feedzilla', - 'tagging', + 'taggit', + 'taggit_templatetags', 'common', ) diff --git a/src/planet/templates/feedzilla/_post_template.html b/src/planet/templates/feedzilla/_post_template.html index 5ef998a..933a0e2 100644 --- a/src/planet/templates/feedzilla/_post_template.html +++ b/src/planet/templates/feedzilla/_post_template.html @@ -1,4 +1,3 @@ -{% load tagging_tags %} {% load i18n %}
@@ -17,11 +16,10 @@ {% trans "Read original" %}
- {% if post.tags %} + {% if post.tags.count %}
Tags: - {% tags_for_object post as tags %} - {% for tag in tags %} + {% for tag in post.tags.all %} {{ tag }} {% endfor %} diff --git a/src/planet/templates/feedzilla/base.html b/src/planet/templates/feedzilla/base.html index 153aeda..18d042e 100644 --- a/src/planet/templates/feedzilla/base.html +++ b/src/planet/templates/feedzilla/base.html @@ -1,6 +1,7 @@ {% extends 'base.html' %} {% load i18n %} {% load feedzilla_tags %} +{% load taggit_extras %} {% block main-content %}

{% trans 'Planet' %}

@@ -16,7 +17,7 @@

{% trans 'Tags' %}

- {% feedzilla_tag_cloud %} + {% include_tagcloud 'feedzilla.post' %}

{% trans 'Source Blogs' %}

-- libgit2 0.21.2