Sorry, but this post without any explanation doesn't help much.
For usage questions, please use the django-users mailing list. To report
bugs, use https://code.djangoproject.com/.
On Tuesday, May 31, 2016 at 8:26:41 AM UTC-4, L K Singh wrote:
>
> class AccountTypeSerializer(serializers.ModelSerializer):
> parent =
> serializers.PrimaryKeyRelatedField(queryset=AccountType.objects.all(),
> required=False)
> class Meta:
> model = AccountType
> fields = ('id','parent','account_type_name')
>
>
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" 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-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/0b4841b8-5302-479b-b3e7-48ad36ea12f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.