Commit 20f725aa authored by Angelo Alvarez's avatar Angelo Alvarez

Edited Display Name for Authors

parent a308824c
...@@ -9,7 +9,7 @@ class Author(models.Model): ...@@ -9,7 +9,7 @@ class Author(models.Model):
bio = models.CharField(max_length=700) bio = models.CharField(max_length=700)
def __str__(self): def __str__(self):
return self.first_name return self.first_name + " " + self.last_name
class Books(models.Model): class Books(models.Model):
title = models.CharField(max_length=50) title = models.CharField(max_length=50)
......
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