Skip to content

Instantly share code, notes, and snippets.

@wooyek
Created April 8, 2016 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wooyek/7c337debf7e1c8b35a4db3a7f127299e to your computer and use it in GitHub Desktop.
Save wooyek/7c337debf7e1c8b35a4db3a7f127299e to your computer and use it in GitHub Desktop.
This is programmer being lazy. 30 minutes of coding because 5 minutes oc copy paste was just to much work.
{% block content %}
<table class="table table-striped">
{% for field_name in ['name', 'sector', 'size', 'email', 'phone', 'url', 'address'] %}
<tr>
<th>{{ object.get_field_name(field_name) }}</th>
<td>{{ object[field_name] }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment