Mercurial > public > sg101
comparison gpp/smiley/models.py @ 17:8eb9b8d014a2
Correct typo in the clear_cache() method on the SmileyManager.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 19 Apr 2009 16:56:24 +0000 |
parents | dbd703f7d63a |
children | 3ae999b0c53b |
comparison
equal
deleted
inserted
replaced
16:c037eee52796 | 17:8eb9b8d014a2 |
---|---|
21 self.smilies = self.all() | 21 self.smilies = self.all() |
22 return self.smilies | 22 return self.smilies |
23 | 23 |
24 def clear_cache(self): | 24 def clear_cache(self): |
25 self.smiley_map = None | 25 self.smiley_map = None |
26 self.smileis = None | 26 self.smilies = None |
27 | 27 |
28 | 28 |
29 class Smiley(models.Model): | 29 class Smiley(models.Model): |
30 image = models.ImageField(upload_to='smiley/images/') | 30 image = models.ImageField(upload_to='smiley/images/') |
31 title = models.CharField(max_length=32) | 31 title = models.CharField(max_length=32) |