summaryrefslogtreecommitdiffstats
path: root/main/utils.py
AgeCommit message (Collapse)AuthorFilesLines
2010-10-14Connect post_save signals where they will always be triggeredDan McGee1-1/+23
We need to do this in the models.py files, otherwise the post_save signal might not be connected right away on launch of the application. Move them over there, add a dispatch_uid so it only gets hooked up once, and do some other function moving around so we don't have circular imports. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-14Add ability to clear a cached function resultDan McGee1-4/+13
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-08Move import to top levelDan McGee1-2/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-10Make the cache_function key a bit more descriptiveDan McGee1-0/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-21Add utility cache_functionDan McGee1-0/+35
This allows caching the results of an arbitrary function and its arguments in the Django-managed cache, e.g. memcached in production. Signed-off-by: Dan McGee <dan@archlinux.org>
2008-10-12separate copyrighted middleware from my additionsDusty Phillips1-16/+0
2008-10-11use RequestContext because its standardDusty Phillips1-4/+0
2008-10-07need better than ids for optionsDusty Phillips1-0/+3
2008-09-17drop a bunch of stuff not necessary for django 1.0Dusty Phillips1-17/+0
2008-03-08Moved models aroundeliott1-0/+36