我创建了以下网址:
url(r'^authors', GenericView.as_view(model=Author, context_object_name='authors_list',
success_url=reverse_lazy('author_link'),
template_name='app/authors.html'), name='author_url_name'),
我要在视图中传递一个名和访问名。在本例中,“author\u url_name”。在
我需要的视图函数如下:
这是可行的,但我想用某个方法替换“author_url_name”,它正好可以满足我的需要。在
谢谢你的时间!!在
https://stackoverflow.com/a/17614086/183948有你的答案。在
相关问题 更多 >
编程相关推荐