Modified models.py

parent 5d1163ae
...@@ -10,7 +10,7 @@ class Author(models.Model): ...@@ -10,7 +10,7 @@ class Author(models.Model):
def __str__(self): def __str__(self):
return self.first_name + ' ' + self.last_name return self.first_name + ' ' + self.last_name
# or return '{}{}'.format(self.first_name, self.last_name)
class Book(models.Model): class Book(models.Model):
title = models.CharField(max_length=300) title = models.CharField(max_length=300)
......
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