from base import *
from django.utils.translation import ugettext as _
-from django.utils.encoding import smart_unicode
+from django.utils.encoding import smart_unicode, force_unicode
from forum import modules
app_label = 'forum'
def __unicode__(self):
- return unicode(self.name)
+ return force_unicode(self.name)
def add_to_usage_count(self, value):
if self.used_count + value < 0:
raise Http404
# Getting the questions QuerySet
- questions = Question.objects.filter(tags__name=smart_unicode(tag.name))
+ questions = Question.objects.filter(tags__id=tag.id)
if request.method == "GET":
user = request.GET.get('user', None)