# views.py class Event(models.Model): title = models.CharField(maxlength=255) eventdate = models.DateField() description = models.TextField(blank=True) def __str__(self): return "%(ed)s %(t)s" % {'t':self.title, 'ed':self.eventdate }
# models.py # get Events from the DB that are in the specified month. object_list = Event.objects.filter(eventdate__range=(dates[0][0],dates[-1][-1])) template: month_index.html object_list: {{ object_list }} object_list.0: {{ object_list.0 }} brows it: renders: object_list: [ ] object_list.0: 2007-07-07 up Why does {{object_list}} render an empty list ? Carl K --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---