Commit e3f09419 authored by Sharmaine Chua's avatar Sharmaine Chua

did some minor changes in manage.py

parent c1c72aee
......@@ -15,7 +15,7 @@ class WidgetUser(models.Model):
department = models.ForeignKey(Department,on_delete=models.CASCADE)
def __str__(self):
return '{} {}'.format(self.first_name, self.last_name)
return '{}, {}'.format(self.last_name, self.first_name)
def get_absolute_url(self):
return reverse('dashboard:user_details', kwargs={'pk': self.pk})
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