Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Author(models.Model):
- name = models.CharField(max_length=120)
- country = models.CharField(max_length=100)
- class Book(models.Model):
- title = models.CharField(max_length=1024)
- publisher = models.CharField(max_length=255)
- published_date = models.DateField()
- author = models.ForeignKey(Author)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement