You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
I need to write a custom tag. I have a hierarchy of objects that I want to turn into a chaptered document. But I want to be able to build and display the document in a template AND generate a PDF or other format from a view. Can I write a custom template tag and use it in a template and from a view?? Or is there already something like this out there
Tomasz Zieliński
unread,
Jan 3, 2010, 7:58:14 AM1/3/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
You could write a function that does what you need and can be used in views, then write template tag as an thin adaptor around this function - so that you can use it in templates.