Changeset 49 for plesonet_contentareas/trunk/models.py
- Timestamp:
- 06/09/09 23:45:14 (3 years ago)
- Files:
-
- 1 modified
-
plesonet_contentareas/trunk/models.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
plesonet_contentareas/trunk/models.py
r48 r49 16 16 result = cache.get(CONTENT_AREA_CACHE_KEY + name) 17 17 if result is None: 18 result = list(self.get_query_set().filter(name=name)) 18 result = list(self.get_query_set().filter(name=name))[0] 19 19 cache.set(CONTENT_AREA_CACHE_KEY + name, result, ALL_CONTENT_AREA_CACHE_TIMEOUT) 20 20 return result

