Hi Sachin, Django-Developers is a forum for discussing the development of Django itself, not for general user queries. General user queries should be posted to Django-users. You should also refrain from posting the same question to both lists.
Yours, Russ Magee %-) On Wed, Jul 4, 2012 at 2:44 PM, Sachin Gupta <[email protected]> wrote: > Hi, > > I wanted to have a functionality to be able to edit the comments posted > using the comments app (not from the admin, from the site and only for > logged in users). As much as I know Django, to render an edit form we need > to pass an instance of the object to the form which has to be edited like > > form = SomeForm(instance=some_object) > > But when I try to do the same in case of CommentForm imported from > django.contrib.comments.forms, I get an error __init__() got an unexpected > keyword argument 'instance'. > When I check the comment form I find that the __init__() for the comment > form is overwritten and it does not accept the `instance` argument. If the > form cannot accept this argument, it means I cannot generate an edit form. > > Is there any work around? > > Thanks, > Sachin > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-developers/-/4aX7tZVf6mkJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/django-developers?hl=en. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
