class RankingCharacterSerializer(serializers.ModelSerializer): class_name = fields.ClassNameField('class_name') class Meta: model = models.Char fields = ('char_id', 'name', 'class_field', 'job_level', 'base_level', 'base_exp', 'job_exp', 'zeny', 'guild_id', 'class_name')
class MerchantSerializer(serializers.ModelSerializer): class_name = fields.ClassNameField('class_name') class Meta: model = models.Char fields = ('name', 'class_field', 'class_name', 'last_map', 'last_x', 'last_y')
class GameCharacterSerializer(serializers.ModelSerializer): class_name = fields.ClassNameField('class_name') class Meta: model = models.Char fields = ('char_id', 'account_id', 'name', 'class_field', 'class_name', 'job_level', 'base_level', 'base_exp', 'job_exp', 'zeny', 'str', 'agi', 'vit', 'int', 'dex', 'luk', 'max_hp', 'hp', 'max_sp', 'sp', 'status_point', 'skill_point', 'party_id', 'guild_id', 'pet_id', 'homun_id', 'last_map', 'last_x', 'last_y', 'save_map', 'save_x', 'save_y', 'partner_id', 'online', 'father', 'mother', 'child')