Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Pass around args and kwargs in PDFResponse | George Hickman | 2012-05-21 | 1 | -5/+6 |
| | | | | | In case you want to pass more things up to HttpResponse. Can't pass filename down though. | ||||
* | Only set 'Content-Disposition' header if filename is set | George Hickman | 2012-05-21 | 1 | -2/+4 |
| | | | | | | | Setting 'Content-Disposition' explicitly sets the PDF as an attachment causing browsers to download the PDF. However newer browsers, like Chrome, will display the PDF without this header. So assume the dev wants this to be force download if they set the filename. | ||||
* | Don't remove tmp files before they're used. | George Hickman | 2012-05-21 | 1 | -6/+12 |
| | | | | | Put _tmp_files onto the object and remove them after the output has been created. | ||||
* | Fixed remote images in pdf | James Turnbull | 2012-03-09 | 1 | -2/+6 |
| | | | | If there's no context_instance (which seems to be the common case), make a Requestcontext and use that. | ||||
* | Use get_template_names() to get templates | James Turnbull | 2012-03-09 | 1 | -1/+1 |
| | | | | | Rather than directly going to self.template_name use the get_template_names() function (which returns self.template_name if not overridden). | ||||
* | Restore *args to PDFTemplateView. | Charlie Denton | 2012-02-24 | 1 | -4/+2 |
| | |||||
* | Fix a couple of daft mistakes. | Charlie Denton | 2012-02-24 | 1 | -6/+7 |
| | |||||
* | Add get_filename method. | Charlie Denton | 2012-02-23 | 1 | -1/+4 |
| | |||||
* | Made PDFTemplateView a little more extensible, and added orientation. | Charlie Denton | 2012-02-23 | 1 | -12/+18 |
| | |||||
* | Return super when called. | Charlie Denton | 2012-02-23 | 1 | -1/+1 |
| | |||||
* | Make PDFTemplateView use PDFResponse. | Charlie Denton | 2012-02-23 | 1 | -1/+1 |
| | |||||
* | Deprecate baDly cApitalised Views. | Charlie Denton | 2012-02-23 | 1 | -2/+16 |
| | |||||
* | Fix use of STATIC vs MEDIA url | George Hickman | 2011-10-30 | 1 | -1/+1 |
| | |||||
* | Refactor the main render method into a class based view | George Hickman | 2011-10-30 | 1 | -0/+61 |
Use a PdfResponse to deal with the headers and response type. Make the margin_* and filename variables instance variables on the view with sane defaults. |