comparison gpp/downloads/models.py @ 412:639cfdf59167

Created import scripts for downloads and download comments.
author Brian Neal <bgneal@gmail.com>
date Thu, 07 Apr 2011 00:59:10 +0000
parents d424b8bae71d
children
comparison
equal deleted inserted replaced
411:97a426a67417 412:639cfdf59167
156 user = models.ForeignKey(User) 156 user = models.ForeignKey(User)
157 vote_date = models.DateTimeField(auto_now_add=True) 157 vote_date = models.DateTimeField(auto_now_add=True)
158 158
159 def __unicode__(self): 159 def __unicode__(self):
160 return u"%s voted on '%s' on %s" % ( 160 return u"%s voted on '%s' on %s" % (
161 self.user.username, 161 self.user.username,
162 self.download.title, 162 self.download.title,
163 self.vote_date.strftime('%b %d, %Y %H:%M:%S')) 163 self.vote_date.strftime('%b %d, %Y %H:%M:%S'))
164 164
165 class Meta: 165 class Meta:
166 ordering = ('-vote_date', ) 166 ordering = ('-vote_date', )