Cleaned Code

parent 00cbe1f9
...@@ -16,4 +16,4 @@ class WidgetUser(models.Model): ...@@ -16,4 +16,4 @@ class WidgetUser(models.Model):
department = models.ForeignKey(Department, null=True, on_delete=models.CASCADE) department = models.ForeignKey(Department, null=True, on_delete=models.CASCADE)
def __str__(self): def __str__(self):
return '{}, {} {} : {}'.format(self.last_name, self.first_name, self.middle_name, self.department) return '{} {}'.format(self.first_name, self.last_name)
\ No newline at end of file \ No newline at end of file
...@@ -3,7 +3,7 @@ from django.urls import path ...@@ -3,7 +3,7 @@ from django.urls import path
from .views import index from .views import index
urlpatterns = [ urlpatterns = [
path('',index, name = 'index'), path('',index, name = 'dashboard_view'),
] ]
dashboard = "Dashboard" app_name = "Dashboard"
\ No newline at end of file \ 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