Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Book(models.Model):
- due_back = models.DateField(null=True, blank=True)
- AVAILABILITY = (
- ('a', 'Available'),
- ('o', 'On loan'),
- ('n', 'Not available'),
- ('r', 'Reserved'),
- )
- status = models.CharField(choices=AVAILABILITY, blank=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement