def get_featured_activity_references():
 featured_model_instance = activity_models.ActivityReferencesModel.get_or_create(activity_models.ACTIVITY_REFERENCE_LIST_FEATURED)
 return [activity_domain.ActivityReference(reference['type'], reference['id']) for reference in featured_model_instance.activity_references]

def get_featured_activity_references ( ) : featured_model_instance = activity_models . ActivityReferencesModel . get_or_create ( activity_models . ACTIVITY_REFERENCE_LIST_FEATURED ) return [ activity_domain . ActivityReference ( reference [ 'type' ] , reference [ 'id' ] ) for reference in featured_model_instance . activity_references ]
gets a list of activityreference domain models .