#NEWLINE# def get_variants_properties( self ) : #NEWLINE# #INDENT# '\n        Returns all properties which are `select types`.\n        ' #NEWLINE# properties = [ ] #NEWLINE# for property_group in self . property_groups . all ( ) : #NEWLINE# #INDENT# for prop in property_group . properties . filter ( type = PROPERTY_SELECT_FIELD , variants = True ) . order_by ( 'groupspropertiesrelation' ) : #NEWLINE# #INDENT# properties . append ( { #NEWLINE# #INDENT# 'property_group' : prop , #NEWLINE# 'property' : prop , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# #UNINDENT# for prop in self . properties . filter ( type = PROPERTY_SELECT_FIELD ) . order_by ( 'productspropertiesrelation' ) : #NEWLINE# #INDENT# properties . append ( { #NEWLINE# #INDENT# 'property_group' : None , #NEWLINE# 'property' : prop , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return properties