Created
March 1, 2011 17:20
-
-
Save skyl/849500 to your computer and use it in GitHub Desktop.
stashing a mediocre idea
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import djredis.models as djr | |
class MyMod(models.Model, djr.DredisMixin): | |
#... | |
currency = models.CharField(max_length=3) | |
djr_currency = djr.String() | |
cache_fields = (('currency', 'djr_currency'),) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment