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
[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
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
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
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
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
6 matches
Mail list logo