Re: Tutorial: __str__() problems

2008-04-29 Thread Juanjo Conti
Try with this code: def __str__(self): return "testing" Does that work? -- Juanjo Conti --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Tutorial: __str__() problems

2008-04-29 Thread Jarek Zgoda
[EMAIL PROTECTED] napisał(a): > I'm just going through the mysite tutorial and can't seem to get the > __str__() method to work when adding it to the two classes, I still > get []. This happened before and I'm not really > sure what fixed it. I'm running .096 > > polls/models.py: > from

Re: Tutorial: __str__() problems

2008-04-29 Thread Jarek Zgoda
shabda napisał(a): > Though __str__ should work here, until you can get this working, try > writing __unicode__ method > > [EMAIL PROTECTED] wrote: >> Hello, >> I'm just going through the mysite tutorial and can't seem to get the >> __str__() method to work when adding it to the two classes, I

Re: Tutorial: __str__() problems

2008-04-29 Thread shabda
Though __str__ should work here, until you can get this working, try writing __unicode__ method [EMAIL PROTECTED] wrote: > Hello, > I'm just going through the mysite tutorial and can't seem to get the > __str__() method to work when adding it to the two classes, I still > get []. This happened

Re: Tutorial: __str__() problems

2008-04-29 Thread shabda
Though __str__ should work here, until you can get this working, try writing __unicode__ method [EMAIL PROTECTED] wrote: > Hello, > I'm just going through the mysite tutorial and can't seem to get the > __str__() method to work when adding it to the two classes, I still > get []. This happened

Tutorial: __str__() problems

2008-04-29 Thread [EMAIL PROTECTED]
Hello, I'm just going through the mysite tutorial and can't seem to get the __str__() method to work when adding it to the two classes, I still get []. This happened before and I'm not really sure what fixed it. I'm running .096 polls/models.py: from django.db import models import datetime