On Mon, Oct 12, 2009 at 1:44 PM, Kenneth Gonsalves
<law...@thenilgiris.com> wrote:
>
> On Monday 12 Oct 2009 11:05:38 am Denis Bahati wrote:
>> class Poll(models.Model):
>>     question = models.CharField(max_length=200)
>>     pub_date = models.DateTimeField('date published')
>> def __unicode__(self):
>> return self.question
>> def was_published_today(self):
>> return self.pub_date.date() == datetime.date.today()
>> def was_published_today(self):
>>     return self.pub_date.date() == datetime.date.today()
>> was_published_today.short_description = 'Published today?'
>
> please learn some python!

Kenneth - please learn some manners. You have repeatedly demonstrated
on this list that you have a deep yearning for brevity. However, let
me assure you that it really doesn't take that much effort to write in
whole sentences (with capitalization and everything). If you throw in
some politeness while you are at it, all the better.

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to