fix django coercing to Unicode: need string or buffer, long found

FFIB лет %!s(int64=4): %!d(string=назад)
Родитель
Сommit
71dbbc8f17
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      member/models.py

+ 1 - 1
member/models.py

@@ -321,7 +321,7 @@ class MemberActivityInfo(BaseModelMixin):
321 321
         verbose_name_plural = _(u'会员活动信息')
322 322
 
323 323
     def __unicode__(self):
324
-        return self.pk
324
+        return '%d' % self.pk
325 325
 
326 326
     @property
327 327
     def image_path(self):