Commit 124bf255 authored by Andre Dalwin C. Tan's avatar Andre Dalwin C. Tan 💬

Populated models with ChatGPT-generated information

parent 812bfcd8
Pipeline #2954 failed with stages
......@@ -8,6 +8,9 @@ class Author(models.Model):
age = models.IntegerField()
nationality = models.CharField(max_length=50)
bio = models.CharField(max_length=700)
def __str__(self):
return (self.first_name+" "+self.last_name)
class Books(models.Model):
title = models.CharField(max_length=100)
......@@ -15,4 +18,6 @@ class Books(models.Model):
publisher = models.CharField(max_length=100)
year_published = models.IntegerField()
ISBN = models.IntegerField()
blurb = models.CharField(max_length=700)
\ No newline at end of file
blurb = models.CharField(max_length=700)
def __str__(self):
return (self.title)
\ No newline at end of file
No preview for this file type
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