Hi and thanks for the response here is the code minus the line numbers -- copied from vim, all my tabs are right and I had the right underscores.
Please let me know if you see something.
thanks again
--jerry
class Poll(models.Model):
8 question = models.CharField(max_length=200)
9 pub_date = models.DateTimeField('date published')
10
11 class Choice(models.Model):
12 poll = models.ForeignKey(Poll)
13 choice = models.CharField(max_length=200)
14 votes = models.IntegerField()
15
16 class Poll(models.Model):
17 def __unicode__(self):
18 return self.question
19 def was_published_recently(self):
20 return self.pub_date >= timezone.now() - datetime.timedelta(days=1)
21
22 class Choice(models.Model):
23 def __unicode__(self):
24 return self.choice
Gerald Klein DBA
Cont...@geraldklein.com
www.geraldklein.com
j...@zognet.com
708-599-0352
Linux registered user #548580