|
| 1 | + |
| 2 | +from talent.models import Talent |
| 3 | +from talent_picture.serializers import TalentPictureSerializer |
| 4 | +from talent_resume.serializers import TalentResumeSerializer |
| 5 | +from talent_position_type.serializers import TalentPositionTypeSerializer |
| 6 | +from talent_position_sub_type.serializers import GeneralTalentPositionSubTypeSerializer |
| 7 | +from authentication.serializers import GeneralUserSerializer |
| 8 | +from talent_skill.serializers import TalentSkillSerializer |
| 9 | +from talent_sub_skill.serializers import GeneralTalentSubSkillSerializer |
| 10 | +from talent_visa.serializers import TalentVisaSerializer |
| 11 | +from talent_language.serializers import TalentLanguageSerializer |
| 12 | +from talent_medical.serializers import TalentMedicalSerializer |
| 13 | +from talent_availability.serializers import TalentAvailabilitySerializerWithoutTalentID |
| 14 | +from talent_rating.deatil_by_talent_serializers import TalentRatingDetailByTalentSerializer |
| 15 | +from rest_framework import serializers |
| 16 | + |
| 17 | + |
| 18 | +class AgencySortTalentAlphaSerializer(serializers.Serializer): |
| 19 | + id = serializers.IntegerField(required=True) |
| 20 | + user = GeneralUserSerializer(many=False, read_only=True) |
| 21 | + picture = serializers.StringField(required=False) |
| 22 | + tid = serializers.StringField(required=False) |
| 23 | + tid = serializers.StringField(required=False) |
| 24 | + approved_date = serializers.DateTimeField(required=False) |
| 25 | + average_rating = serializers.FloatField(required=False) |
| 26 | + created = serializers.DateTimeField(required=False) |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | +# class TalentGeneralSerializer(serializers.ModelSerializer): |
| 31 | +# id = serializers.IntegerField(required=True) |
| 32 | +# user = GeneralUserSerializer(many=False, read_only=True) |
| 33 | +# talent_pictures = TalentPictureSerializer(many=True, read_only=True) |
| 34 | +# # talent_position_types = TalentPositionTypeSerializer(many=True, read_only=True) |
| 35 | +# # talent_position_sub_types = GeneralTalentPositionSubTypeSerializer(many=True, read_only=True) |
| 36 | +# # talent_skills = TalentSkillSerializer(many=True, read_only=True) |
| 37 | +# # talent_sub_skills = GeneralTalentSubSkillSerializer(many=True, read_only=True) |
| 38 | +# # talent_visas = TalentVisaSerializer(many=True, read_only=True) |
| 39 | +# # talent_languages = TalentLanguageSerializer(many=True, read_only=True) |
| 40 | +# # talent_medicals = TalentMedicalSerializer(many=True, read_only=True) |
| 41 | +# # talent_availabilities = TalentAvailabilitySerializerWithoutTalentID(many=True, read_only=True) |
| 42 | +# # talent_ratings = TalentRatingDetailByTalentSerializer(many=True, read_only=True) |
| 43 | +# # average_rating = serializers.FloatField(source='get_average_rating', read_only=True) |
| 44 | +# # profile_status = serializers.JSONField(source='get_profile_status', read_only=True) |
| 45 | +# # talent_availabilities_last_update = serializers.DateTimeField( |
| 46 | +# # source='get_talent_availabilities_last_update', |
| 47 | +# # read_only=True |
| 48 | +# # ) |
| 49 | + |
| 50 | +# class Meta: |
| 51 | +# model = Talent |
| 52 | +# fields = ( |
| 53 | +# 'id', |
| 54 | +# 'user', |
| 55 | +# # 'sex', |
| 56 | +# # 'talent_position_types', |
| 57 | +# # 'talent_position_sub_types', |
| 58 | +# # 'talent_skills', |
| 59 | +# # 'talent_sub_skills', |
| 60 | + |
| 61 | +# # 'phone_number', |
| 62 | +# # 'mailing_addresse1', |
| 63 | +# # 'mailing_addresse2', |
| 64 | +# # 'mailing_addresse3', |
| 65 | +# # 'mailing_addresse4', |
| 66 | +# # 'mailing_addresse5', |
| 67 | +# # 'mailing_addresse6', |
| 68 | +# # 'birthday', |
| 69 | + |
| 70 | +# # 'emergency_first_name', |
| 71 | +# # 'emergency_last_name', |
| 72 | +# # 'emergency_email', |
| 73 | +# # 'emergency_phone', |
| 74 | +# # 'emergency_relationship', |
| 75 | + |
| 76 | +# # 'nationality', |
| 77 | +# # 'citizenship', |
| 78 | +# # 'passport_expiration_date', |
| 79 | +# # 'passport_number', |
| 80 | +# # 'country_of_current_residence', |
| 81 | +# # 'have_green_card', |
| 82 | +# # 'green_card_expiration_date', |
| 83 | +# # 'visa_type', |
| 84 | +# # 'expiration_date', |
| 85 | + |
| 86 | +# # 'height', |
| 87 | +# # 'weight', |
| 88 | +# # 'bmi', |
| 89 | +# # 'age_range', |
| 90 | +# # 'head_line', |
| 91 | +# # 'bio', |
| 92 | + |
| 93 | +# # 'talent_visas', |
| 94 | +# # 'talent_languages', |
| 95 | +# # 'talent_pictures', |
| 96 | +# # 'talent_resume', |
| 97 | +# # 'talent_medicals', |
| 98 | + |
| 99 | +# # 'talent_availabilities', |
| 100 | +# # 'talent_availabilities_last_update', |
| 101 | +# # 'talent_ratings', |
| 102 | +# # 'average_rating', |
| 103 | + |
| 104 | +# # 'worked_cruise_ship', |
| 105 | +# 'tid', |
| 106 | +# 'approved_date', |
| 107 | +# 'approved_by', |
| 108 | +# # 'locked_dance_combination', |
| 109 | +# 'created', |
| 110 | + |
| 111 | +# 'profile_status' |
| 112 | +# ) |
0 commit comments