generic 'object' name to access data fields of a Widget User object

parent 843042c7
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %} {% load static %}
{% block title %} {{ user.last_name }}, {{ user.first_name }} {% endblock %} {% block title %} {{ object.last_name }}, {{ object.first_name }} {% endblock %}
{% block content %} {% block content %}
<h1>{{ user.last_name }} {{ user.middle_name }} {{ user.first_name }}</h1> <h1>{{ object.last_name }} {{ object.middle_name }} {{ object.first_name }}</h1>
<h2>{{ user.department.dept_name }}</h2> <h2>{{ object.department.dept_name }}</h2>
<h3>{{ user.department.home_unit }}</h3> <h3>{{ object.department.home_unit }}</h3>
<form action="./edit"> <form action="./edit">
<button type="submit">Edit Widget User</button> <button type="submit">Edit Widget User</button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment