html2print
clone your own copy | download snapshot

Snapshots | iceberg

No images in this repository’s iceberg at this time

Inside this repository

forms.py
text/x-python

Download raw (216 bytes)

from django import forms
from .tasks import htmltopdf


class GenerateForm(forms.Form):
    url = forms.URLField()

    def print(self):
        url = self.cleaned_data.get("url")
        return htmltopdf.delay(url)