Show
Ignore:
Timestamp:
06/09/09 23:45:14 (3 years ago)
Author:
235
Message:

contentarea fix

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plesonet_contentareas/trunk/models.py

    r48 r49  
    1616        result = cache.get(CONTENT_AREA_CACHE_KEY + name) 
    1717        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] 
    1919            cache.set(CONTENT_AREA_CACHE_KEY + name, result, ALL_CONTENT_AREA_CACHE_TIMEOUT) 
    2020        return result