I'm exploring generic class-based views these days, and was wondering about
something. When I use DetailView, the object gets passed to the template,
where I have to print all of the properties one by one in the desired HTML
element.

I was wondering if it's possible to quick-render an object the way we do
with model forms? I mean, is there some way I can say something like
'object.as_table()'? I thought of using FormView as a substitute for this,
but that requires data to be present in POST, and forcibly populating POST
seems like a bad idea.

Any thoughts?

Regards,
Ankush Thakur

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALX%3DrK%2BYJkSS_GVRzE3n7oDRwsU%2B21BR8o_1jMXCFxqynh0n9A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to