Skip to content

Commit

Permalink
fix: fix a bug in django Program serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem committed Aug 29, 2024
1 parent 337e688 commit 9a87d98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/fsm/serializers/program_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,11 @@ def to_representation(self, instance):
representation['registration_since'] = registration_form.since
representation['registration_till'] = registration_form.till
representation['audience_type'] = registration_form.audience_type
representation['is_free'] = instance.is_free
return representation

class Meta:
model = Program
fields = '__all__'
read_only_fields = ['id', 'creator', 'is_approved',
'registration_form', 'program_contact_info', 'is_free']
'registration_form', 'program_contact_info']

0 comments on commit 9a87d98

Please sign in to comment.