Updated dashboard view

parent 6b5ecb04
......@@ -9,10 +9,8 @@ def index (request):
for department in Department.objects.all():
for user in WidgetUser.objects.all():
return_string += '<li>{}, {} {}: {}, {}</li>'.format(
user.last_name, user.first_name, user.middle_name, user.department, department.home_unit
user.last_name, user.first_name, user.middle_name, department.dept_name, department.home_unit
)
return_string += '</ul>'
html_string = '<html><body>{}</body></html>'.format(return_string)
return HttpResponse(html_string)
\ No newline at end of file
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