app/models/trait.py
def details(self, include=None):
        """
        Returns a dict with the trait's details
        """
        details = self.data()
        if include is None:
            return details
        elif include['trait_name']:
            return self.name
        include['trait'] = False

        if include['choice']:
            details.update({
                'choices': [choice.details(include) for choice in self.choices.all()],
            })
        if include['group']:
            details.update({
                'groups': [group.details(include) for group in self.groups.all()],
            })
        return details

        Returns a dict with the trait's details
        
Returns a dict with the trait's details
Returns a dict with the trait ' s details
def details(self, include=None):
        details = self.data()
        if include is None:
            return details
        elif include['trait_name']:
            return self.name
        include['trait'] = False
        if include['choice']:
            details.update({
                'choices': [choice.details(include) for choice in self.choices.all()],
            })
        if include['group']:
            details.update({
                'groups': [group.details(include) for group in self.groups.all()],
            })
        return details
def details ( self , include = None ) : details = self . data ( ) if include is None : return details elif include [ 'trait_name' ] : return self . name include [ 'trait' ] = False if include [ 'choice' ] : details . update ( { 'choices' : [ choice . details ( include ) for choice in self . choices . all ( ) ] , } ) if include [ 'group' ] : details . update ( { 'groups' : [ group . details ( include ) for group in self . groups . all ( ) ] , } ) return details
Returns a dict with the trait's details
Returns a dict with the trait ' s details
"""
        Returns a dict with the trait's details
        """
self
include