as_* helpers (e.g. as_p as_div) for display (read "not in a form")

14 views
Skip to first unread message

Sam Brown

unread,
Dec 14, 2022, 8:06:48 PM12/14/22
to Django users
Hello,

I've used the as_p helper in the Forms to get success, however I'd love to use a similar helper for display purposes.  The main feature I like is that the as_p helper allows me to build a template quickly and I can change the model as needed and not have to update the template.

Does anyone know of a non-form helper like as_p?

Same question posted on stackoverflow here

Thanks,

Sam Brown
Reply all
Reply to author
Forward
0 new messages