Форум сайта python.su
from django.contrib.comments.forms import CommentForm
from django import forms
class CustomCommentForm(CommentForm):
def __init__(self,*a,**b):
super(CommentForm, self).__init__(*a,**b)
def save(self, req):
from django.contrib.comments.views.comments import post_comment
post_comment(req,"/")
Офлайн
def __init__(self,*a,**b):
super(CustomCommentForm, self).__init__(*a,**b)
Офлайн