Commit 1f6e273e authored by Gabriel G. Garrero's avatar Gabriel G. Garrero

updated __str__ function in models.py for better integration with announcementboard app

parent f6d978b6
......@@ -17,7 +17,7 @@ class WidgetUser(models.Model):
department = models.ForeignKey(Department, on_delete = models.CASCADE)
def __str__(self):
return self.first_name + ' ' + self.last_name
return self.last_name + ' ' + self.first_name
def get_absolute_url(self):
return reverse("widgetusers:user-details", kwargs={"pk": self.pk})
\ 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