def post(self, request, *args, **kwargs): print("bamboo.views.page.create.CreateView.post ") print(request.POST) page_form = PageForm(request.POST) print("bamboo.views.page.create.CreateView.post page_form") print(page_form) page_form.save() return FormView.post(self, request, *args, **kwargs)
def post(self, request, *args, **kwargs): form = CommentForm(request.POST) blog = self.get_object() if form.is_valid(): form = form.save(commit=False) form.user = request.user form.blog_id = blog.id form.save() return FormView.post(self, request, *args, **kwargs)
def post(self, request, *args, **kwargs): return FormView.post(self, request, *args, **kwargs) if not request.user.is_authenticated: return HttpResponseForbidden() self.object = self.get_object() form = self.get_form() if form.is_valid(): return self.form_valid(form) else: return self.form_invalid(form)
def post(self, request, *args, **kwargs): note_form = NoteForm(request.POST) note_form.save() return FormView.post(self, request, *args, **kwargs)
def get(self, request, *args, **kwargs): return FormView.post(self, request, *args, **kwargs)
def post(self, request, *args, **kwargs): print("The Post info: ") print(request.POST) return FormView.post(self, request, *args, **kwargs)
def post(self, *args, **kwargs): self.object = self.get_object() return FormView.post(self, *args, **kwargs)