[Answer]-How to retrieve an object that was just created in Tastypie

1👍

Try this as:

 bundle.data['user'] = Journalist.objects.get(user = bundle.obj.user)

bundle.obj will give you the Comment model object. You can the get the user by bundle.obj.user.

👤Ahsan

Leave a comment