On 2/10/07, Andrew Diederich <[EMAIL PROTECTED]> wrote:
> Is there an easy way to munge the return self.end_date into a string?
This is a Python requirement -- __str__() methods must return a
string. To fix the problem, wrap self.end_date in str(), like so:
return str(self.end_date)
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---