{% extends "base.html" %}
{% load core %}
{% load generic %}
{% block content %}
{% if datamodel.graph.svg %}
{% if datamodel.graph.error %}
{{ 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
{% 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 %}