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 django-users@
[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 django.d
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 st
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 be
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 be
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
class
6 matches
Mail list logo