Hi, i'm newbie in django and i'm writing a model to record a general booking in a particular date for a particular item The booking model looks like this:
class Booking(models.Model): item = models.ForeignKey(Item) startDate = models.DateField("From") endDate = models.DateField("To") obviously i want to check if the item is available for the selected dates before create a new booking. I've to ckeck it via a database trigger or there is a django method to do this? p.s. I'll use this model both in django admin and in a custom user interface. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---