app/models/choice.py
def details(self, include=None):
        """
        Returns a dict with the choice's details
            Note: For this to work the sub-class needs to have a trait property
        """
        details = self.data()
        if include is None:
            return details
        elif include['choice_name']:
            return self.name
        include['choice'] = False

        if include['trait']:
            details['trait'] = self.trait.details(include)
        return details

        Returns a dict with the choice's details
            Note: For this to work the sub-class needs to have a trait property
        
Returns a dict with the choice's details
Note: For this to work the sub-class needs to have a trait property
Returns a dict with the choice ' s details Note : For this to work the sub - class needs to have a trait property
def details(self, include=None):
        details = self.data()
        if include is None:
            return details
        elif include['choice_name']:
            return self.name
        include['choice'] = False
        if include['trait']:
            details['trait'] = self.trait.details(include)
        return details
def details ( self , include = None ) : details = self . data ( ) if include is None : return details elif include [ 'choice_name' ] : return self . name include [ 'choice' ] = False if include [ 'trait' ] : details [ 'trait' ] = self . trait . details ( include ) return details
Returns a dict with the choice's details
Note: For this to work the sub-class needs to have a trait property
Returns a dict with the choice ' s details Note : For this to work the sub - class needs to have a trait property
"""
        Returns a dict with the choice's details
            Note: For this to work the sub-class needs to have a trait property
        """
self
include