problem was i ahd to restart the shell, didnt work just reimporting.
On 3 Juni, 22:18, Sebastian Bauer <[EMAIL PROTECTED]> wrote:
> try:
> def __str__(self):
> return self.question
>
> [EMAIL PROTECTED] pisze:
>
> >http://www.djangoproject.com/documentation/tutorial01/
>
> > added these:
> >
try:
def __str__(self):
return self.question
[EMAIL PROTECTED] pisze:
> http://www.djangoproject.com/documentation/tutorial01/
>
> added these:
> class Poll(models.Model):
> # ...
> def __unicode__(self):
> return self.question
>
> class Choice(models.Model):
> # ...
>
Adjango\utils
Adjango\utils\termcolors.py
Adjango\utils\_decimal.py
Adjango\utils\__init__.py
Adjango\utils\autoreload.py
Adjango\utils\dates.py
Adjango\utils\stopwords.py
Adjango\utils\html.py
Adjango\utils\safestring.py
Adjango\utils\translation
Adjang
http://www.djangoproject.com/documentation/tutorial01/
added these:
class Poll(models.Model):
# ...
def __unicode__(self):
return self.question
class Choice(models.Model):
# ...
def __unicode__(self):
return self.choice
using the latest django-version fetched by
4 matches
Mail list logo