Wednesday, July 17, 2013

Re: django templates

One option is to use a Django admin action - the user selects which job/jobs are needed from the usual list -
and your action can then generate the data, passing this into a single "master template" (composite of your other templates) for the user to print (or you could have an action just to generate all the lab reports for the selected jobs - its quite flexible).

See:
https://docs.djangoproject.com/en/1.5/ref/contrib/admin/actions/
http://www.jpichon.net/blog/2010/08/django-admin-actions-and-intermediate-pages/


On Tuesday, 16 July 2013 18:43:42 UTC+2, Harjot Mann wrote:
In my project the lab reports, reciepts, and bills are made from html
templates but thse are not saved anywhere but now I need to take the
print outs of all the reports which are made till now for example form
job_id 30 to 400. I want to make function for this so that it can be
done in a one script. Anyone having idea that how can I do this?/

--
Harjot Kaur Mann
Blog: http://harjotmann.wordpress.com/

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate