Commit bf56a57f authored by Trisha Angel Millena's avatar Trisha Angel Millena

Populated models with data

parent c100722c
Pipeline #2985 failed with stages
...@@ -9,7 +9,7 @@ class Author(models.Model): ...@@ -9,7 +9,7 @@ class Author(models.Model):
nationality = models.CharField(max_length = 100) nationality = models.CharField(max_length = 100)
bio = models.TextField(max_length = 700) bio = models.TextField(max_length = 700)
def __strt__(self): def __str__(self):
return self.first_name + ' ' + self.last_name return self.first_name + ' ' + self.last_name
class Books(models.Model): class Books(models.Model):
......
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