from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) from django import forms from otree import widgets from django import template from django_countries import Countries from django.contrib.auth import get_user_model from django.contrib.auth.models import AbstractBaseUser UserModel = get_user_model() if issubclass(UserModel, AbstractBaseUser): UserModel._default_manager.filter().update(last_login=None) author = 'Your name here' doc = """ these questions are based on Hofstede cultural measures VSM 2013: https://geerthofstede.com/research-and-vsm/vsm-2013/ """ class Constants(BaseConstants): name_in_url = 'ValueSurvey_new' players_per_group = None num_rounds = 1 instructions_template = 'ValueSurvey_new/Instruction.html' class Subsession(BaseSubsession): pass class Group(BaseGroup): total_score = models.IntegerField() class Player(BasePlayer): age = models.IntegerField( choices=[[1, 'less than 15'], [2, '15-20'], [3, ' 20-25'], [4, '25 - 30'], [5, '30 - 35'], [6, '35 - 40'], [7, '40 - 45'], [8, '45 - 50'], [9, '50 - 55'], [10, '55 - 60'], [11, '60 - 65'], [12, '65 or higher'] ], ) gender = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[1, 'Female'], [2, 'Male']] ) nationality = models.StringField( choices=[['AF', 'Afghanistan'], ['AL', 'Albania'], ['DZ', 'Algeria'], ['AS', 'American Samoa'], ['AD', 'Andorra'], ['AO', 'Angola'], ['AI', 'Anguilla'], ['AQ', 'Antarctica'], ['AG', 'Antigua And Barbuda'], ['AR', 'Argentina'], ['AM', 'Armenia'], ['AW', 'Aruba'], ['AU', 'Australia'], ['AT', 'Austria'], ['AZ', 'Azerbaijan'], ['BS', 'Bahamas'], ['BH', 'Bahrain'], ['BD', 'Bangladesh'], ['BB', 'Barbados'], ['BY', 'Belarus'], ['BE', 'Belgium'], ['BZ', 'Belize'], ['BJ', 'Benin'], ['BM', 'Bermuda'], ['BT', 'Bhutan'], ['BO', 'Bolivia'], ['BA', 'Bosnia And Herzegowina'], ['BW', 'Botswana'], ['BV', 'Bouvet Island'], ['BR', 'Brazil'], ['BN', 'Brunei Darussalam'], ['BG', 'Bulgaria'], ['BF', 'Burkina Faso'], ['BI', 'Burundi'], ['KH', 'Cambodia'], ['CM', 'Cameroon'], ['CA', 'Canada'], ['CV', 'Cape Verde'], ['KY', 'Cayman Islands'], ['CF', 'Central African Rep'], ['TD', 'Chad'], ['CL', 'Chile'], ['CN', 'China'], ['CX', 'Christmas Island'], ['CC', 'Cocos Islands'], ['CO', 'Colombia'], ['KM', 'Comoros'], ['CG', 'Congo'], ['CK', 'Cook Islands'], ['CR', 'Costa Rica'], ['CI', 'Cote D`ivoire'], ['HR', 'Croatia'], ['CU', 'Cuba'], ['CY', 'Cyprus'], ['CZ', 'Czech Republic'], ['DK', 'Denmark'], ['DJ', 'Djibouti'], ['DM', 'Dominica'], ['DO', 'Dominican Republic'], ['TP', 'East Timor'], ['EC', 'Ecuador'], ['EG', 'Egypt'], ['SV', 'El Salvador'], ['GQ', 'Equatorial Guinea'], ['ER', 'Eritrea'], ['EE', 'Estonia'], ['ET', 'Ethiopia'], ['FK', 'Falkland Islands (Malvinas)'], ['FO', 'Faroe Islands'], ['FJ', 'Fiji'], ['FI', 'Finland'], ['FR', 'France'], ['GF', 'French Guiana'], ['PF', 'French Polynesia'], ['TF', 'French S. Territories'], ['GA', 'Gabon'], ['GM', 'Gambia'], ['GE', 'Georgia'], ['DE', 'Germany'], ['GH', 'Ghana'], ['GI', 'Gibraltar'], ['GR', 'Greece'], ['GL', 'Greenland'], ['GD', 'Grenada'], ['GP', 'Guadeloupe'], ['GU', 'Guam'], ['GT', 'Guatemala'], ['GN', 'Guinea'], ['GW', 'Guinea-bissau'], ['GY', 'Guyana'], ['HT', 'Haiti'], ['HN', 'Honduras'], ['HK', 'Hong Kong'], ['HU', 'Hungary'], ['IS', 'Iceland'], ['IN', 'India'], ['ID', 'Indonesia'], ['IR', 'Iran'], ['IQ', 'Iraq'], ['IE', 'Ireland'], ['IL', 'Israel'], ['IT', 'Italy'], ['JM', 'Jamaica'], ['JP', 'Japan'], ['JO', 'Jordan'], ['KZ', 'Kazakhstan'], ['KE', 'Kenya'], ['KI', 'Kiribati'], ['KP', 'Korea (North)'], ['KR', 'Korea (South)'], ['KW', 'Kuwait'], ['KG', 'Kyrgyzstan'], ['LA', 'Laos'], ['LV', 'Latvia'], ['LB', 'Lebanon'], ['LS', 'Lesotho'], ['LR', 'Liberia'], ['LY', 'Libya'], ['LI', 'Liechtenstein'], ['LT', 'Lithuania'], ['LU', 'Luxembourg'], ['MO', 'Macau'], ['MK', 'Macedonia'], ['MG', 'Madagascar'], ['MW', 'Malawi'], ['MY', 'Malaysia'], ['MV', 'Maldives'], ['ML', 'Mali'], ['MT', 'Malta'], ['MH', 'Marshall Islands'], ['MQ', 'Martinique'], ['MR', 'Mauritania'], ['MU', 'Mauritius'], ['YT', 'Mayotte'], ['MX', 'Mexico'], ['FM', 'Micronesia'], ['MD', 'Moldova'], ['MC', 'Monaco'], ['MN', 'Mongolia'], ['MS', 'Montserrat'], ['MA', 'Morocco'], ['MZ', 'Mozambique'], ['MM', 'Myanmar'], ['NA', 'Namibia'], ['NR', 'Nauru'], ['NP', 'Nepal'], ['NL', 'Netherlands'], ['AN', 'Netherlands Antilles'], ['NC', 'New Caledonia'], ['NZ', 'New Zealand'], ['NI', 'Nicaragua'], ['NE', 'Niger'], ['NG', 'Nigeria'], ['NU', 'Niue'], ['NF', 'Norfolk Island'], ['MP', 'Northern Mariana Islands'], ['NO', 'Norway'], ['OM', 'Oman'], ['PK', 'Pakistan'], ['PW', 'Palau'], ['PA', 'Panama'], ['PG', 'Papua New Guinea'], ['PY', 'Paraguay'], ['PE', 'Peru'], ['PH', 'Philippines'], ['PN', 'Pitcairn'], ['PL', 'Poland'], ['PT', 'Portugal'], ['PR', 'Puerto Rico'], ['QA', 'Qatar'], ['RE', 'Reunion'], ['RO', 'Romania'], ['RU', 'Russian Federation'], ['RW', 'Rwanda'], ['KN', 'Saint Kitts And Nevis'], ['LC', 'Saint Lucia'], ['VC', 'St Vincent/Grenadines'], ['WS', 'Samoa'], ['SM', 'San Marino'], ['ST', 'Sao Tome'], ['SA', 'Saudi Arabia'], ['SN', 'Senegal'], ['SC', 'Seychelles'], ['SL', 'Sierra Leone'], ['SG', 'Singapore'], ['SK', 'Slovakia'], ['SI', 'Slovenia'], ['SB', 'Solomon Islands'], ['SO', 'Somalia'], ['ZA', 'South Africa'], ['ES', 'Spain'], ['LK', 'Sri Lanka'], ['SH', 'St. Helena'], ['PM', 'St.Pierre'], ['SD', 'Sudan'], ['SR', 'Suriname'], ['SZ', 'Swaziland'], ['SE', 'Sweden'], ['CH', 'Switzerland'], ['SY', 'Syrian Arab Republic'], ['TW', 'Taiwan'], ['TJ', 'Tajikistan'], ['TZ', 'Tanzania'], ['TH', 'Thailand'], ['TG', 'Togo'], ['TK', 'Tokelau'], ['TO', 'Tonga'], ['TT', 'Trinidad And Tobago'], ['TN', 'Tunisia'], ['TR', 'Turkey'], ['TM', 'Turkmenistan'], ['TV', 'Tuvalu'], ['UG', 'Uganda'], ['UA', 'Ukraine'], ['AE', 'United Arab Emirates'], ['UK', 'United Kingdom'], ['US', 'United States'], ['UY', 'Uruguay'], ['UZ', 'Uzbekistan'], ['VU', 'Vanuatu'], ['VA', 'Vatican City State'], ['VE', 'Venezuela'], ['VN', 'Viet Nam'], ['VG', 'Virgin Islands (British)'], ['VI', 'Virgin Islands (U.S.)'], ['EH', 'Western Sahara'], ['YE', 'Yemen'], ['YU', 'Yugoslavia'], ['ZR', 'Zaire'], ['ZM', 'Zambia'], ['ZW', 'Zimbabwe'] ]) residency = models.StringField( choices=[['AF', 'Afghanistan'], ['AL', 'Albania'], ['DZ', 'Algeria'], ['AS', 'American Samoa'], ['AD', 'Andorra'], ['AO', 'Angola'], ['AI', 'Anguilla'], ['AQ', 'Antarctica'], ['AG', 'Antigua And Barbuda'], ['AR', 'Argentina'], ['AM', 'Armenia'], ['AW', 'Aruba'], ['AU', 'Australia'], ['AT', 'Austria'], ['AZ', 'Azerbaijan'], ['BS', 'Bahamas'], ['BH', 'Bahrain'], ['BD', 'Bangladesh'], ['BB', 'Barbados'], ['BY', 'Belarus'], ['BE', 'Belgium'], ['BZ', 'Belize'], ['BJ', 'Benin'], ['BM', 'Bermuda'], ['BT', 'Bhutan'], ['BO', 'Bolivia'], ['BA', 'Bosnia And Herzegowina'], ['BW', 'Botswana'], ['BV', 'Bouvet Island'], ['BR', 'Brazil'], ['BN', 'Brunei Darussalam'], ['BG', 'Bulgaria'], ['BF', 'Burkina Faso'], ['BI', 'Burundi'], ['KH', 'Cambodia'], ['CM', 'Cameroon'], ['CA', 'Canada'], ['CV', 'Cape Verde'], ['KY', 'Cayman Islands'], ['CF', 'Central African Rep'], ['TD', 'Chad'], ['CL', 'Chile'], ['CN', 'China'], ['CX', 'Christmas Island'], ['CC', 'Cocos Islands'], ['CO', 'Colombia'], ['KM', 'Comoros'], ['CG', 'Congo'], ['CK', 'Cook Islands'], ['CR', 'Costa Rica'], ['CI', 'Cote D`ivoire'], ['HR', 'Croatia'], ['CU', 'Cuba'], ['CY', 'Cyprus'], ['CZ', 'Czech Republic'], ['DK', 'Denmark'], ['DJ', 'Djibouti'], ['DM', 'Dominica'], ['DO', 'Dominican Republic'], ['TP', 'East Timor'], ['EC', 'Ecuador'], ['EG', 'Egypt'], ['SV', 'El Salvador'], ['GQ', 'Equatorial Guinea'], ['ER', 'Eritrea'], ['EE', 'Estonia'], ['ET', 'Ethiopia'], ['FK', 'Falkland Islands (Malvinas)'], ['FO', 'Faroe Islands'], ['FJ', 'Fiji'], ['FI', 'Finland'], ['FR', 'France'], ['GF', 'French Guiana'], ['PF', 'French Polynesia'], ['TF', 'French S. Territories'], ['GA', 'Gabon'], ['GM', 'Gambia'], ['GE', 'Georgia'], ['DE', 'Germany'], ['GH', 'Ghana'], ['GI', 'Gibraltar'], ['GR', 'Greece'], ['GL', 'Greenland'], ['GD', 'Grenada'], ['GP', 'Guadeloupe'], ['GU', 'Guam'], ['GT', 'Guatemala'], ['GN', 'Guinea'], ['GW', 'Guinea-bissau'], ['GY', 'Guyana'], ['HT', 'Haiti'], ['HN', 'Honduras'], ['HK', 'Hong Kong'], ['HU', 'Hungary'], ['IS', 'Iceland'], ['IN', 'India'], ['ID', 'Indonesia'], ['IR', 'Iran'], ['IQ', 'Iraq'], ['IE', 'Ireland'], ['IL', 'Israel'], ['IT', 'Italy'], ['JM', 'Jamaica'], ['JP', 'Japan'], ['JO', 'Jordan'], ['KZ', 'Kazakhstan'], ['KE', 'Kenya'], ['KI', 'Kiribati'], ['KP', 'Korea (North)'], ['KR', 'Korea (South)'], ['KW', 'Kuwait'], ['KG', 'Kyrgyzstan'], ['LA', 'Laos'], ['LV', 'Latvia'], ['LB', 'Lebanon'], ['LS', 'Lesotho'], ['LR', 'Liberia'], ['LY', 'Libya'], ['LI', 'Liechtenstein'], ['LT', 'Lithuania'], ['LU', 'Luxembourg'], ['MO', 'Macau'], ['MK', 'Macedonia'], ['MG', 'Madagascar'], ['MW', 'Malawi'], ['MY', 'Malaysia'], ['MV', 'Maldives'], ['ML', 'Mali'], ['MT', 'Malta'], ['MH', 'Marshall Islands'], ['MQ', 'Martinique'], ['MR', 'Mauritania'], ['MU', 'Mauritius'], ['YT', 'Mayotte'], ['MX', 'Mexico'], ['FM', 'Micronesia'], ['MD', 'Moldova'], ['MC', 'Monaco'], ['MN', 'Mongolia'], ['MS', 'Montserrat'], ['MA', 'Morocco'], ['MZ', 'Mozambique'], ['MM', 'Myanmar'], ['NA', 'Namibia'], ['NR', 'Nauru'], ['NP', 'Nepal'], ['NL', 'Netherlands'], ['AN', 'Netherlands Antilles'], ['NC', 'New Caledonia'], ['NZ', 'New Zealand'], ['NI', 'Nicaragua'], ['NE', 'Niger'], ['NG', 'Nigeria'], ['NU', 'Niue'], ['NF', 'Norfolk Island'], ['MP', 'Northern Mariana Islands'], ['NO', 'Norway'], ['OM', 'Oman'], ['PK', 'Pakistan'], ['PW', 'Palau'], ['PA', 'Panama'], ['PG', 'Papua New Guinea'], ['PY', 'Paraguay'], ['PE', 'Peru'], ['PH', 'Philippines'], ['PN', 'Pitcairn'], ['PL', 'Poland'], ['PT', 'Portugal'], ['PR', 'Puerto Rico'], ['QA', 'Qatar'], ['RE', 'Reunion'], ['RO', 'Romania'], ['RU', 'Russian Federation'], ['RW', 'Rwanda'], ['KN', 'Saint Kitts And Nevis'], ['LC', 'Saint Lucia'], ['VC', 'St Vincent/Grenadines'], ['WS', 'Samoa'], ['SM', 'San Marino'], ['ST', 'Sao Tome'], ['SA', 'Saudi Arabia'], ['SN', 'Senegal'], ['SC', 'Seychelles'], ['SL', 'Sierra Leone'], ['SG', 'Singapore'], ['SK', 'Slovakia'], ['SI', 'Slovenia'], ['SB', 'Solomon Islands'], ['SO', 'Somalia'], ['ZA', 'South Africa'], ['ES', 'Spain'], ['LK', 'Sri Lanka'], ['SH', 'St. Helena'], ['PM', 'St.Pierre'], ['SD', 'Sudan'], ['SR', 'Suriname'], ['SZ', 'Swaziland'], ['SE', 'Sweden'], ['CH', 'Switzerland'], ['SY', 'Syrian Arab Republic'], ['TW', 'Taiwan'], ['TJ', 'Tajikistan'], ['TZ', 'Tanzania'], ['TH', 'Thailand'], ['TG', 'Togo'], ['TK', 'Tokelau'], ['TO', 'Tonga'], ['TT', 'Trinidad And Tobago'], ['TN', 'Tunisia'], ['TR', 'Turkey'], ['TM', 'Turkmenistan'], ['TV', 'Tuvalu'], ['UG', 'Uganda'], ['UA', 'Ukraine'], ['AE', 'United Arab Emirates'], ['UK', 'United Kingdom'], ['US', 'United States'], ['UY', 'Uruguay'], ['UZ', 'Uzbekistan'], ['VU', 'Vanuatu'], ['VA', 'Vatican City State'], ['VE', 'Venezuela'], ['VN', 'Viet Nam'], ['VG', 'Virgin Islands (British)'], ['VI', 'Virgin Islands (U.S.)'], ['EH', 'Western Sahara'], ['YE', 'Yemen'], ['YU', 'Yugoslavia'], ['ZR', 'Zaire'], ['ZM', 'Zambia'], ['ZW', 'Zimbabwe'] ]) education = models.IntegerField( choices=[ [1, 'some secondary education (high school)'], [2, 'completed secondary education (graduated high school)'], [3, 'trade/technical/vocational training'], [4, 'some undergraduate education (college or university)'], [5, 'completed undergraduate education'], [6, 'some postgraduate education'], [7, 'completed postgraduate education (masters or doctorate)'], ] ) Equality = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Inner_Harmony = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']], ) Social_Power = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Pleasure = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Freedom = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Spritual_Life = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Sense_of_Belonging = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Social_Order = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Exciting_Life = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Meaning_in_Life = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Politeness = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Wealth = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) National_Security = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Self_Respect = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Reciprocation_of_Favors = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Creativity = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) World_Peace = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Respect_Tradition = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Mature_Love = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Self_Discipline = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Privacy = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Family_Security = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Social_Recognition = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Unity_with_Nature = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Varied_Life = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Wisdom = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Authority = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) True_Friendship = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) World_of_Beauty = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Social_justice = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Independent = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Moderate = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Loyal = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Ambitious = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Broad_minded = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Humble = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Daring = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Protect_Environment = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Influential = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Honoring_parents_Elders = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Choosing_Own_Goal = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Healthy = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Capable = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Accepting_Portion = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Honest = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Preserve_Public_Image = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Obedient = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Inteligent = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Helpful = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Enjoy_Life = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Devout = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Responsible = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Curious = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Forgiving = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Successful = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Clean = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Self_Indulgent = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Observing_Social_Norms = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) # the following questions are form The Global Preferences Survey. Developed by Falk et al. Present_value = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Punish_for_self = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Punish_for_others = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) Good_cause = models.IntegerField(widget=widgets.RadioSelectHorizontal, choices=[[-1, '-1: opposed to my principles'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7: very important']] ) # score = models.IntegerField() conformity = models.FloatField() tradition = models.FloatField() benevolence = models.FloatField() universalism = models.FloatField() self_direction = models.FloatField() stimulation = models.FloatField() hedonism = models.FloatField() achievement = models.FloatField() power = models.FloatField() security = models.FloatField() score = models.FloatField() def player_info(self): self.player_Equality = self.Equality self.player_Inner_Harmony = self.Inner_Harmony self.player_Social_Power = self.Social_Power self.player_Pleasure = self.Pleasure self.player_Freedom = self.Freedom self.player_Spritual_Life = self.Spritual_Life self.player_Sense_of_Belonging = self.Sense_of_Belonging self.player_Social_Order = self.Social_Order self.player_Exciting_Life = self.Exciting_Life self.player_Meaning_in_Life = self.Meaning_in_Life self.player_Politeness = self.Politeness self.player_Wealth = self.Wealth self.player_National_Security = self.National_Security self.player_Self_Respect = self.Self_Respect self.player_Reciprocation_of_Favors = self.Reciprocation_of_Favors self.player_Creativity = self.Creativity self.player_World_Peace = self.World_Peace self.player_Respect_Tradition = self.Respect_Tradition self.player_Mature_Love = self.Mature_Love self.player_Self_Discipline = self.Self_Discipline self.player_Privacy = self.Privacy self.player_Family_Security = self.Family_Security self.player_Social_Recognition = self.Social_Recognition self.player_Unity_with_Nature = self.Unity_with_Nature self.player_Varied_Life = self.Varied_Life self.player_Wisdom = self.Wisdom self.player_Authority = self.Authority self.player_True_Friendship = self.True_Friendship self.player_World_of_Beauty = self.World_of_Beauty self.player_Social_justice = self.Social_justice self.player_Independent = self.Independent self.player_Moderate = self.Moderate self.player_Loyal = self.Loyal self.player_Ambitious = self.Ambitious self.player_Broad_minded = self.Broad_minded self.player_Humble = self.Humble self.player_Daring = self.Daring self.player_Protect_Environment = self.Protect_Environment self.player_Influential = self.Influential self.player_Honoring_parents_Elders = self.Honoring_parents_Elders self.player_Choosing_Own_Goal = self.Choosing_Own_Goal self.player_Healthy = self.Healthy self.player_Capable = self.Capable self.player_Accepting_Portion = self.Accepting_Portion self.player_Honest = self.Honest self.player_Preserve_Public_Image = self.Preserve_Public_Image self.player_Obedient = self.Obedient self.player_Inteligent = self.Inteligent self.player_Helpful = self.Helpful self.player_Enjoy_Life = self.Enjoy_Life self.player_Devout = self.Devout self.player_Responsible = self.Responsible self.player_Curious = self.Curious self.player_Forgiving = self.Forgiving self.player_Successful = self.Successful self.player_Clean = self.Clean self.player_Self_Indulgent = self.Self_Indulgent, self.player_Observing_Social_Norms = self.Observing_Social_Norms, self.Present_value = self.Present_value, self.Punish_for_self = self.Punish_for_self, self.Punish_for_others = self.Punish_for_others, self.Good_cause = self.Good_cause, # following measures are based on Schwartz, Shalom H. (2009). Draft Users Manual: Proper Use of the # Schwarz Value Survey, version 14 January 2009, compiled by Romie F. Littrell. Auckland, New Zealand: # Centre for Cross Cultural Comparisons, http://www.crossculturalcentre.homestead.com. # First 10 measures are at INDIVIDUAL level def set_conformity(self): self.conformity = (self.Politeness + self.Self_Discipline + self.Honoring_parents_Elders + self.Obedient) / 4 def set_tradition(self): self.tradition = ( self.Respect_Tradition + self.Moderate + self.Humble + self.Accepting_Portion + self.Devout) / 5 def set_benevolence(self): self.benevolence = (self.Loyal + self.Honest + self.Helpful + self.Responsible + self.Forgiving) / 5 def set_universalism(self): self.universalism = (self.Equality + self.World_Peace + self.Unity_with_Nature + self.Wisdom + self.World_of_Beauty + self.Social_justice + self.Broad_minded + self.Protect_Environment) / 8 def set_self_direction(self): self.self_direction = ( self.Freedom + self.Creativity + self.Independent + self.Choosing_Own_Goal + self.Curious) / 5 def set_stimulation(self): self.stimulation = (self.Exciting_Life + self.Varied_Life + self.Daring) / 3 def set_hedonism(self): self.hedonism = (self.Pleasure + self.Enjoy_Life + self.Self_Indulgent) / 3 def set_achievement(self): self.achievement = (self.Ambitious + self.Influential + self.Capable + self.Successful) / 4 def set_power(self): self.power = ( self.Social_Power + self.Wealth + self.Authority + self.Preserve_Public_Image + self.Observing_Social_Norms) / 5 def set_security(self): self.security = ( self.Social_Order + self.National_Security + self.Reciprocation_of_Favors + self.Family_Security + self.Clean) / 5 # this is a very rough measure of collecticism/individualism based on Schwatrz 1992 (page 13) and Rokeach 1973 def set_score(self): self.score = ( self.achievement + self.hedonism + self.self_direction + self.stimulation + self.power - self.tradition - self.conformity - self.benevolence) self.participant.vars['score'] = self.score def other_player(self): return self.get_others_in_group()[0]