Fix user creation receiver at official creation
This commit is contained in:
@@ -93,8 +93,16 @@ class FeedSerializer(serializers.ModelSerializer):
|
||||
return feed
|
||||
|
||||
|
||||
class OccupationSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = Occupation
|
||||
fields = ('start_date', 'end_date')
|
||||
|
||||
|
||||
class ContactsSerializer(serializers.ModelSerializer):
|
||||
current_roles = OccupationSerializer(many=True, read_only=True)
|
||||
|
||||
class Meta:
|
||||
model = Official
|
||||
fields = ('id', 'first_name', 'last_name', 'phone_number', 'role')
|
||||
fields = ('id', 'first_name', 'last_name', 'email', 'phone_number', 'current_roles')
|
||||
depth = 2
|
||||
|
||||
Reference in New Issue
Block a user