Mercurial > public > sg101
diff user_photos/models.py @ 749:b6e98717690b
For #59, add user photo de-duplication for uploads.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 30 Dec 2013 15:05:43 -0600 |
parents | b2a8fde3173a |
children |
line wrap: on
line diff
--- a/user_photos/models.py Sun Dec 29 15:41:56 2013 -0600 +++ b/user_photos/models.py Mon Dec 30 15:05:43 2013 -0600 @@ -14,6 +14,7 @@ upload_date = models.DateTimeField() url = models.URLField(max_length=200) thumb_url = models.URLField(max_length=200, blank=True) + signature = models.CharField(max_length=32, blank=True, db_index=True) def __unicode__(self): return u'Photo by {} on {}'.format(self.user.username,