def get_section(self, obj): if obj.section: memUtil = MemcachedUtil() return memUtil.getSection(obj.section.id) else: return ""
def get_location(self, obj): if obj.location: memUtil = MemcachedUtil() return memUtil.getLocation(obj.location.id) else: return ""