[Fixed]-I want to show only a part of the information of the register in the template



I would use two build-in generic class based views and a template tags to do the tricks.

A ListView for show all messages stored in the database and a truncatechars or a truncatewords for print only a part of the content. Then a link to a DetailView for show the entire content in a new dedicated page.

I hope it will help.



Leave a comment