{% extends "base.html" %} {% load core %} {% load generic %} {% block content %} {% if datamodel.graph.svg %}
{{ datamodel.graph.svg|safe }}

{% endif %}
{% if datamodel.graph.error %} {% endif %}

Entities

{% for entity in datamodel.entities %}

{{ entity.name|title }}

related via

{% for relation in datamodel.relations %} {% with relation.model_class.subj_list|add:relation.model_class.obj_list as model_list %} {% endwith %} {% endfor %}

attributes

{% get_model_fields entity.model_class False as entity_fields %} {% for field in entity_fields %} {% endfor %}
Verbose name Help text Primary key Can be blank Can be null Choices Type
{{ field.verbose_name }} {{ field.help_text }} {% for val, key in field.choices %} {{ key }} {% if not foloop.last %},{% endif %} {% endfor %} {{ field.get_internal_type }}
{% endfor %}

Relations

{% for relation in datamodel.relations %}

{{ relation.model_class.name }} width {{ relation.model_class.reverse_name }}

Subjects Objects
{% for cls in relation.model_class.subj_list %} {% with cls|contenttype as entity %}{{ entity.name }}{% endwith %} {% endfor %} {% for cls in relation.model_class.obj_list %} {% with cls|contenttype as entity %}{{ entity.name }}{% endwith %} {% endfor %}
{% endfor %}
{% endblock %}