我正在使用基于 django 类的视图
class MyView(TemplateView):
def return_JSON(self, object_id):
parent = models.UserForm.objects.get(pk=object_id)
url(r'^return/(?P<object_id>\d+)/json/', views.MyView().return_JSON, name="return_json")
我收到这个错误
return_JSON() got multiple values for keyword argument 'object_id'