Commit d1c3cff8 authored by Jose Emmanuel B. Laurel's avatar Jose Emmanuel B. Laurel

Clean: removed 'WidgetUser' from line 2 so that it is no longer imported.

parents 3f2076f8 4ef6bb02
<p>
<h2>WIDGET USERS:</h2>
{% for Department in Departments %}
<p>
<b>{{Department.widgetuser.last_name}}, {{Department.widgetuser.first_name}} {{Department.widgetuser.middle_name}}</b>:
{{Department.widgetuser.id_num}}, {{Department.widgetuser.email}}, {{Department.dept_name}}, {{Department.home_unit}}
</p>
{% endfor %}
</p>
\ No newline at end of file
from django.http import HttpResponse from django.shortcuts import render
from .models import Department
def index(request): def index(request):
return HttpResponse("Welcome to Widget!") Departments = Department.objects.all()
return render(request, 'widgetusers_listings.html', {'Departments': Departments})
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