human
Solve the following python programming problem given the following code:
def get_relations(self) : 
    choices = self.get_object ().choices.annotate (vote_count = Count ('votes')).order_by ('-vote_count', 'choice_text') 
    def choice_resource(choice) : 
        resource = ChoiceResource () 
        resource.obj = choice 
        resource.request = getattr (self, 'request', None) 
        return resource 
return { 
        'choices' : map (choice_resource, list (self)), 
} 

    
    

    Fix the buggy line: 'choices' : map (choice_resource, list (self)) ,
assistant
#Here is Python code to fix the buggy line: 'choices' : map (choice_resource, list (self)) ,
.

'choices' : map (choice_resource, list (choices)) ,