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

1๐Ÿ‘

โœ…

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.

Regards,

๐Ÿ‘คepi.log

Leave a comment