def authorable_xblocks(allow_unsupported=False, name=None):
 blocks = XBlockStudioConfiguration.objects.current_set().filter(enabled=True)
 if (not allow_unsupported):
  blocks = blocks.exclude(support_level=XBlockStudioConfiguration.UNSUPPORTED)
 if name:
  blocks = blocks.filter(name=name)
 return blocks

def authorable_xblocks ( allow_unsupported = False , name = None ) : blocks = XBlockStudioConfiguration . objects . current_set ( ) . filter ( enabled = True ) if ( not allow_unsupported ) : blocks = blocks . exclude ( support_level = XBlockStudioConfiguration . UNSUPPORTED ) if name : blocks = blocks . filter ( name = name ) return blocks
this method returns the queryset of xblocks that can be created in studio .