Merge branch 'dev' of github.com:KiwiTechLLC/ZODBank-Backend into sprint2

This commit is contained in:
jain
2023-07-13 12:29:33 +05:30
2 changed files with 3 additions and 2 deletions

View File

@ -244,4 +244,4 @@ class GuardianProfileSerializer(serializers.ModelSerializer):
fields = ['id', 'email', 'first_name', 'last_name', 'country_name','country_code', 'phone', 'gender', 'dob',
'guardian_code', 'notification_count', 'total_count', 'complete_field_count', 'referral_code',
'is_active', 'is_complete_profile', 'created_at', 'image', 'signup_method',
'updated_at']
'updated_at', 'passcode']

View File

@ -244,7 +244,7 @@ class JuniorProfileSerializer(serializers.ModelSerializer):
fields = ['id', 'email', 'first_name', 'last_name', 'country_name', 'country_code', 'phone', 'gender', 'dob',
'guardian_code', 'referral_code','is_active', 'is_complete_profile', 'created_at', 'image',
'updated_at', 'notification_count', 'total_count', 'complete_field_count', 'signup_method',
'is_invited']
'is_invited', 'passcode']
class AddJuniorSerializer(serializers.ModelSerializer):
"""Add junior serializer"""
@ -308,3 +308,4 @@ class RemoveJuniorSerializer(serializers.ModelSerializer):
instance.guardian_code = '{}'
instance.save()
return instance