我收到一个错误的 int() 以 10 为底的无效文字:sharat
并且不知道如何修复它。有什么建议吗?
friend = 'sharat'
user_playlists = Everything.objects.filter(profile = friend).values('playlist').distinct()
class Everything(models.Model):
profile = models.ForeignKey(User)
playlist = models.CharField('Playlist', max_length = 2000, null=True, blank=True)
platform = models.CharField('Platform', max_length = 2000, null=True, blank=True)
video = models.CharField('VideoID', max_length = 2000, null=True, blank=True)
video_title = models.CharField('Title of Video', max_length = 2000, null=True, blank=True)
def __unicode__(self):
return u'%s %s %s %s %s' % (self.profile, self.playlist, self.platform, self.video, self.video_title)