Commit a7eb0148 authored by Agu Syquia's avatar Agu Syquia

Updated models.py

Changed the model field of year_published to an integer field
parent 2e0a222b
......@@ -15,7 +15,7 @@ class Books(models.Model):
title = models.CharField(max_length=100)
author = models.ForeignKey(Author, on_delete=models.CASCADE)
publisher = models.CharField(max_length=69)
year_published = models.DateField()
year_published = models.IntegerField(default=2000)
ISBN = models.IntegerField(default=0)
blurb = models.TextField(max_length=700)
......
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