Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
	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)
Пример #4
0
 def post(self, request, *args, **kwargs):
     note_form = NoteForm(request.POST)
     note_form.save()
     return FormView.post(self, request, *args, **kwargs)
Пример #5
0
 def get(self, request, *args, **kwargs):
     return FormView.post(self, request, *args, **kwargs)
Пример #6
0
 def get(self, request, *args, **kwargs):
     return FormView.post(self, request, *args, **kwargs)
Пример #7
0
 def post(self, request, *args, **kwargs):
     print("The Post info: ")
     print(request.POST)
     return FormView.post(self, request, *args, **kwargs)
Пример #8
0
 def post(self, *args, **kwargs):
     self.object = self.get_object()
     return FormView.post(self, *args, **kwargs)