Cool, thanks!
BTW, also be weary of trailing spaces in the doctests, they can also
screw things up
for example:
...
>>> suite1.runday.all()
[<DayOfWeek: Monday>]
"""
That tested fine but:
...
>>> suite1.runday.all()
[<DayOfWeek: Monday>] |<- line actually ends here
"""
failed.
On 19/04/07, Michael K <[EMAIL PROTECTED]> wrote:
>
>
>
> On Apr 19, 10:17 am, Michael K <[EMAIL PROTECTED]> wrote:
> > On Apr 19, 9:03 am, "Ryan Alexander" <[EMAIL PROTECTED]> wrote:
> >
> > There's an easier (django) way to do this:
> >
> > def __str__(self):
> > return self.day.get_day_display()
> >
> > This will return the second value of the tuple, "Sunday" if it were
> > "6".
> >
>
> that should be:
>
> return self.get_day_display()
>
> Dunno how that extra "day" got in there. Must be the daylight savings
> change. :)
>
> --
> Michael
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---