Commit fbebed89 authored by Elaiza Bolislis's avatar Elaiza Bolislis

Modified dashboard app's models.py to add a get_absolute_url function in the WidgetUser model.

parent 68c35e93
from django.db import models
from django.urls import reverse
class Department(models.Model):
......@@ -21,3 +22,6 @@ class WidgetUser(models.Model):
self.first_name,
self.middle_name
)
def get_absolute_url(self):
return reverse('dashboard:widgetuser-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