Models
Models
Model fields
class Player(BasePlayer):
...
name = models.CharField()
age = models.PositiveIntegerField()
is_student = models.BooleanField()Settng a field's initial/default value
min, max. choices
Constants
Subsession
session
round_number
before_session_starts
creating_session
group_randomly()
group_like_round()
get_group_matrix()
get_groups()
get_players()
in_previous_rounds()
in_all_rounds()
in_round(round_number)
in_rounds(self, first, last)
Group
sessions/subsession
get_players()
get_player_by_role(role)
get_player_by_id(id_in_group)
set_players(players_list)
in_previous_rounds()
in_all_rounds()
in_round(round_number)
in_rounds(self, first, last)
Player
id_in_group
payoff
session/subsession/group/participant
get_others_in_group()
get_others_in_subsession()
role()
in_previous_rounds()
in_all_rounds()
in_round(round_number)
in_rounds(self, first, last)
Session
num_participants
config
vars
Participant
vars
label
id_in_session
payoff
payoff_plus_participation_fee
oTreeコードの実行方法
Last updated