diff --git a/docs/apps/topics/gettingstarted.txt b/docs/apps/topics/gettingstarted.txt index 7f1676a60..c80621f2e 100644 --- a/docs/apps/topics/gettingstarted.txt +++ b/docs/apps/topics/gettingstarted.txt @@ -15,7 +15,7 @@ These are the requirements to run ``pinax.apps.account``: * Python **2.4+** (Python 3.x is **not** supported yet) * Django **1.2+** - * django-tagging + * django-taggit * django-threadedcomments These dependencies should be added to your ``requirements/project.txt`` file diff --git a/pinax/apps/topics/models.py b/pinax/apps/topics/models.py index e09616b90..a5baae9d4 100644 --- a/pinax/apps/topics/models.py +++ b/pinax/apps/topics/models.py @@ -14,11 +14,10 @@ else: notification = None -from tagging.fields import TagField +from taggit.managers import TaggableManager from threadedcomments.models import ThreadedComment - class Topic(models.Model): """ a discussion topic for the tribe. @@ -37,7 +36,7 @@ class Topic(models.Model): modified = models.DateTimeField(_("modified"), default=datetime.now) # topic modified when commented on body = models.TextField(_("body"), blank=True) - tags = TagField() + tags = TaggableManager() class Meta: ordering = ["-modified"] diff --git a/pinax/templates/default/topics/topic.html b/pinax/templates/default/topics/topic.html index dd2203fe4..d0951b3b0 100644 --- a/pinax/templates/default/topics/topic.html +++ b/pinax/templates/default/topics/topic.html @@ -3,7 +3,6 @@ {% load i18n %} {% load account_tags %} {% load uni_form_tags %} -{% load extra_tagging_tags %} {% load pagination_tags %} {% load comments_tag %} {% load avatar_tags %} @@ -24,7 +23,7 @@

{{ topic.title }}

{{ topic.body|urlize|linebreaks }}
-

{% show_tags_for topic %}

+

{% topic.tags.all %}

{% ifequal user topic.creator %}
{% csrf_token %} diff --git a/pinax/templates/default/topics/topic_item.html b/pinax/templates/default/topics/topic_item.html index 156ed3927..88818a533 100644 --- a/pinax/templates/default/topics/topic_item.html +++ b/pinax/templates/default/topics/topic_item.html @@ -2,7 +2,6 @@ {% load account_tags %} {% load avatar_tags %} {% load threadedcommentstags %} -{% load extra_tagging_tags %} {% load group_tags %} {% endif %} -

{% show_tags_for topic %}

+

{% topic.tags.all %}