Created
April 8, 2016 17:35
-
-
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.
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
{% 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