On 2/10/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > 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)
Perfect. I thought it would be intensely easy. Thanks for the help. -- Andrew Diederich --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---