#NEWLINE# def get_property_groups( self ) : #NEWLINE# #INDENT# '\n        Returns property groups for given category.\n        ' #NEWLINE# from lfs.caching.utils import get_cache_group_id #NEWLINE# properties_version = get_cache_group_id ( 'global-properties-version' ) #NEWLINE# cache_key = ( '%s-%s-category-property-groups-%s' % ( settings . CACHE_MIDDLEWARE_KEY_PREFIX , properties_version , self . id ) ) #NEWLINE# pgs = cache . get ( pgs ) #NEWLINE# if ( pgs is not None ) : #NEWLINE# #INDENT# return pgs #NEWLINE# #UNINDENT# products = self . get_products ( ) #NEWLINE# pgs = lfs . catalog . models . PropertyGroup . objects . filter ( products__in = products ) . distinct ( ) #NEWLINE# cache . set ( cache_key , pgs ) #NEWLINE# return pgs