Допустим будет такой класс.
class AddPost(View): model = Post template = template form = PostForm def get(self, request): form = self.model return render(request, self.template, context={'form':form}) def post(self, request): bound_form = self.model(request.POST, request.FILES) if bound_form.is_valid(): new_obj = bound_form.save() return redirect(new_obj) return render(request, self.template, context={'form':bound_form})