Commit f7152968 authored by AllenSkyy's avatar AllenSkyy

added def_str_ to homepage models.py

parent 0020d094
...@@ -4,3 +4,6 @@ class WidgetUser(models.Model): ...@@ -4,3 +4,6 @@ class WidgetUser(models.Model):
first_name = models.CharField(max_length=30) first_name = models.CharField(max_length=30)
middle_name = models.CharField(max_length=30) middle_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30)
def __str__(self):
return f"{self.first_name} {self.middle_name} {self.last_name}"
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