viewing and adding comments while editing an object in the admin interface

0 views
Skip to first unread message

adball

unread,
Nov 14, 2009, 1:54:29 PM11/14/09
to Django users
I'm using the django.contrib.comments app in Django 1.1 and would
really like to be able to enter contents for objects while editing
them in the admin interface. Specifically, I have a Member model
which represents a person who is a member of an organization and want
users of the admin interface to be able to enter and read comments
about that person in the admin interface. anyone know of some ways to
do this?

I'm hoping somebody has already done this before. I suppose making a
custom ModelAdmin class that uses the forms and template tags provide
by the comments app would work, but that's more work than I want to do
if somebody already has a solution. I've also never really added a
separate form to a view in the admin interface before.

Andrew Ball

unread,
Nov 20, 2009, 3:09:38 PM11/20/09
to Django users
It looks like overriding the change_form.html template for the Admin site (described at http://docs.djangoproject.com/en/dev/ref/contrib/admin/#adminsite-objects) to include the template tags for the comments may do the trick, but I haven't yet had time to experiment with this approach ...


--

You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=.





--
=======================
Andrew D. Ball
勃安
"Ὁ θεὸς ἀγάπη ἐστίν ..." (1 Jn 4:16)


Reply all
Reply to author
Forward
0 new messages