Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ArticleCreateView(generic.CreateView):
- template_name = 'blog/article_create.html'
- context_object_name = 'article'
- model = Article
- fields = ['author', 'title', 'content']
- def get_success_url(self):
- return reverse('blog:article-list')
Advertisement
Add Comment
Please, Sign In to add comment