yield row
def _get_query_hash(self):
yield row
def _get_query_hash(self):
- return md5(str(self.query)).hexdigest()
+ return md5(unicode(self.query).encode("utf-8")).hexdigest()
return None
else:
if self._original_state['tagnames']:
return None
else:
if self._original_state['tagnames']:
- old_tags = set(name for name in self._original_state['tagnames'].split(u' '))
+ old_tags = set(self._original_state['tagnames'].split())
- new_tags = set(name for name in self.tagnames.split(u' ') if name)
+ new_tags = set(self.tagnames.split())
return dict(
current=list(new_tags),
return dict(
current=list(new_tags),
app_label = 'forum'
def __unicode__(self):
app_label = 'forum'
def __unicode__(self):
- return smart_unicode(self.name)
+ return unicode(self.name)
def add_to_usage_count(self, value):
if self.used_count + value < 0:
def add_to_usage_count(self, value):
if self.used_count + value < 0: