Skip to content

Instantly share code, notes, and snippets.

@nickhargreaves
Created June 4, 2018 17:42
Show Gist options
  • Save nickhargreaves/ec6fe496a70bb27d23f648daaacd6ff9 to your computer and use it in GitHub Desktop.
Save nickhargreaves/ec6fe496a70bb27d23f648daaacd6ff9 to your computer and use it in GitHub Desktop.
{% load qr_code %}
<h1>SpaceShips</h1>
<ul>
{% for spaceship in object_list %}
<li>
{{ spaceship.model }}
{% qr_from_text spaceship.pk size=8 version=12 %}
</li>
{% empty %}
<li>No spaceships yet.</li>
{% endfor %}
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment