app/models/group.py
def generate(self, num=None, seed=None, include=None):
        """
        Returns a choice for each of the groupings traits
        """
        if num is None:
            num = 1

        groups = []

        for i in range(num):
            group = {}
            for trait in self.traits:
                group[trait.name] = [
                    i.details(include)
                    for i in trait.generate(seed=seed)
                ]

            groups.append(group)

        return group

        Returns a choice for each of the groupings traits
        
Returns a choice for each of the groupings traits
Returns a choice for each of the groupings traits
def generate(self, num=None, seed=None, include=None):
        if num is None:
            num = 1
        groups = []
        for i in range(num):
            group = {}
            for trait in self.traits:
                group[trait.name] = [
                    i.details(include)
                    for i in trait.generate(seed=seed)
                ]
            groups.append(group)
        return group
def generate ( self , num = None , seed = None , include = None ) : if num is None : num = 1 groups = [ ] for i in range ( num ) : group = { } for trait in self . traits : group [ trait . name ] = [ i . details ( include ) for i in trait . generate ( seed = seed ) ] groups . append ( group ) return group
Returns a choice for each of the groupings traits
Returns a choice for each of the groupings traits
"""
        Returns a choice for each of the groupings traits
        """
self
num
seed
include