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

FFIB %!s(int64=4) %!d(string=hace) años
padre
commit
71dbbc8f17
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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):