Last active
May 31, 2017 13:42
-
-
Save matthisk/2a935725b5f02817fc1ab0710f5aa20b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import partial | |
def some_view(request): | |
line_chart = LineChart() | |
render(request, 'template.html', { | |
'line_chart_as_html_200': partial(line_chart.as_html, line_chart, '200'), | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment