def has_permission(self, request, view):
if request.method == '<STR_LIT:POST>':<EOL><INDENT>user = Profile.objects.only('<STR_LIT:id>', '<STR_LIT:username>').get(username=view.kwargs['<STR_LIT:username>'])<EOL>return request.user.id == user.id<EOL><DEDENT>return True<EOL>
applies to social-link-list