I use Django CreateView, and I wanted to set success_url in the same way so that when the form is submitted, the same page is displayed, and I can display the created object in addition to the form in case you want to add a new one. However, self.object is None because of this in BaseCreateView :
def post(self, request, *args, **kwargs): self.object = None return super(BaseCreateView, self).post(request, *args, **kwargs)
I conclude that CreateView will not be re-displayed after success?
source share