Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. class Book(models.Model):
  2. due_back = models.DateField(null=True, blank=True)
  3.  
  4. AVAILABILITY = (
  5. ('a', 'Available'),
  6. ('o', 'On loan'),
  7. ('n', 'Not available'),
  8. ('r', 'Reserved'),
  9. )
  10.  
  11. status = models.CharField(choices=AVAILABILITY, blank=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement