How to display more things in admin.StackedInline

Posted by FurtiveFelon on Stack Overflow See other posts from Stack Overflow or by FurtiveFelon
Published on 2010-06-15T20:01:01Z Indexed on 2010/06/15 20:02 UTC
Read the original article Hit count: 176

Filed under:
|

Hi all,

I have Article model and a Comment model. Comment is created in admin.py as admin.StackedInline, and it has several fields, notably content and lastUpdate. For lastUpdate, i have specified as follows: lastUpdate = models.DateTimeField('last update', auto_now=True). Understandably, lastUpdate is not displayed when i try to add new comment (or edit old ones). However, i would like it to display for older comments if possible, as a read only thing. Is there anyway of accomplishing that?

Thanks a lot!

Jason

© Stack Overflow or respective owner

Related posts about django

Related posts about django-admin