from datetime import datetime
from django.db import models

class Author(models.Model):
  '''Object for book author'''

  first_name = models.CharField(max_length=128)
  last_name = models.CharField(max_length=128)

  def __unicode__(self):
    return self.last_name + ", " + self.first_name


class Book(models.Model):
  '''Object for library books'''

  title = models.CharField(max_length=128)
  isbn = models.CharField(max_length=13)
  isbn13 = models.CharField(max_length=13)
  description = models.TextField()
  authors = models.ManyToManyField(Author)
  year_published = models.SmallIntegerField(null=True)
  status = models.TextField(default="In")

  def __unicode__(self):
    return self.title


class Reservation(models.Model):
  '''Object for book reservations'''

  book_id = models.ForeignKey('Book')
  member_name = models.CharField(max_length=128)
  email = models.EmailField()
  date_created = models.DateTimeField(default=datetime.now())

  def __unicode__(self):
    return self.member_name + ":" + self.book_id

@@ -1007,20 +1007,25 @@
 ame + %22:
+ 
 %22 + 
+str(
 self.boo
@@ -1028,9 +1028,10 @@
 .book_id
+)
 %0A

Fix error where book id wasn't cast to string