I bought and am Reading the Book Two Scoops of Django:Best Practices for Django 1.5 and in it has a example of Class based views. After this implementation I get the error afte
Solved the problem after reading the first sentence of Austin Phillips:
def form_valid(self, form): article = form.save(commit=False) article.author = self.request.user self.object = article.save() return super().form_valid(form)
the point is the save article.save()'s result back to self.object
article.save()
self.object