#NEWLINE# @ permission_required ( 'core.manage_shop' ) #NEWLINE# def properties_inline( request , id , template_name = 'manage/property_groups/properties_inline.html' ) : #NEWLINE# #INDENT# '\n    ' #NEWLINE# property_group = get_object_or_404 ( PropertyGroup , pk = id ) #NEWLINE# gps = GroupsPropertiesRelation . objects . filter ( group = id ) . select_related ( 'property' ) #NEWLINE# assignable_properties = Property . objects . exclude ( local = True ) . exclude ( groupspropertiesrelation__in = gps ) #NEWLINE# assignable_properties = assignable_properties . order_by ( 'name' ) #NEWLINE# return render_to_string ( template_name , RequestContext ( request , { #NEWLINE# #INDENT# 'property_group' : property_group , #NEWLINE# 'properties' : assignable_properties , #NEWLINE# 'gps' : gps , #NEWLINE# #UNINDENT# } ) )