my serializer looks like 
class FeeSerializer(serializers.Modelserializer):
class Meta:
model = Fee
fields = (
'id',
'name',
'emplid',
'emplid_check'
)
        

I want to serialize and send 'emplid_check' in the response for few 
'emplid', How to customize serializer.

1) If 'emplid' matches serializer should include 'emplid_check'
2) If not matches exclude


can someone suggest me please,


Thank you
Siddharth Kantekar







-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1bd85a12-db16-4f37-9663-ad761ca6e60b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to