Change WidgetUser __str__ to return full name

parent 54deb519
...@@ -20,4 +20,5 @@ class WidgetUser(models.Model): ...@@ -20,4 +20,5 @@ class WidgetUser(models.Model):
department = models.ForeignKey(Department, on_delete=models.CASCADE, null=True) department = models.ForeignKey(Department, on_delete=models.CASCADE, null=True)
def __str__(self): def __str__(self):
return self.id_num full_name = self.first_name + " " + self.middle_name + " " + self.last_name
\ No newline at end of file return full_name
\ 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