1Blog.objects.filter(entry__headline__contains='Lennon').filter(entry__pub_date__year=2008)
2
1def meetings(request):
2 meetingData = EventsBoardmeeting.objects.all()
3 return render(request, 'board/meetings.html', {'data': meetingData })
4
1class EventsMeetinglocation(models.Model):
2 id = models.IntegerField(primary_key=True)
3 name = models.CharField(max_length=100)
4 address = models.CharField(max_length=200)
5
6 class Meta:
7 managed = True
8 db_table = 'events_meetinglocation'
9
10class EventsBoardmeeting(models.Model):
11 id = models.IntegerField(primary_key=True)
12 date = models.DateTimeField()
13 agenda_id = models.IntegerField(blank=True, null=True)
14 location_id = models.ForeignKey(EventsMeetinglocation)
15 minutes_id = models.IntegerField(blank=True, null=True)
16
17 class Meta:
18 managed = True
19 db_table = 'events_boardmeeting'
20