[Answered ]-'BlogPostResource' object has no attribute 'request'

2👍

I found the problem. I’ve edited the lines as below.

def url(self, instance): 

as

def url(self,request,instance):

Leave a comment