from base import *
from django.utils.translation import ugettext as _
+from django.utils.encoding import smart_unicode
from forum import modules
app_label = 'forum'
def __unicode__(self):
- return self.name
+ return smart_unicode(self.name)
def add_to_usage_count(self, value):
if self.used_count + value < 0:
from django import template
from django.utils.html import *
from django.utils import simplejson
+from django.utils.encoding import smart_unicode
from django.db.models import Q, Count
from django.utils.translation import ugettext as _
from django.template.defaultfilters import slugify
raise Http404
# Getting the questions QuerySet
- questions = Question.objects.filter(tags=tag)
+ questions = Question.objects.filter(tags__name=smart_unicode(tag.name))
if request.method == "GET":
user = request.GET.get('user', None)