{% extends "admin/base.html" %} {% block header %}{{ model_name | capitalize }} Details{% endblock %} {% block content %}
{{ field.replace('_', ' ') | title }} | {% endfor %} {% for field, field_info in marshall_class.model_fields.items() if not field_info.exclude and field not in model.pknames and field not in model.meta.relationship_fields %}{{ field.replace('_', ' ') | title }} | {% endfor %}
---|---|
{{ getattr(marshall_object, field) }} | {% endfor %} {% for field, field_info in marshall_class.model_fields.items() if not field_info.exclude and field not in model.pknames and field not in model.meta.relationship_fields %}{{ getattr(marshall_object, field) }} | {% endfor %}