Updated format of dashboard view

parent f25c7af8
...@@ -5,7 +5,7 @@ from .models import Department, WidgetUser ...@@ -5,7 +5,7 @@ from .models import Department, WidgetUser
def index (request): def index (request):
return_string = 'Welcome to Widget!<br> WIDGET USERS:<ul>' return_string = '<p>Welcome to Widget!</p> WIDGET USERS:<ul>'
for department in Department.objects.all(): for department in Department.objects.all():
for user in WidgetUser.objects.all(): for user in WidgetUser.objects.all():
return_string += '<li>{}, {} {}: {}, {}</li>'.format( return_string += '<li>{}, {} {}: {}, {}</li>'.format(
......
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