Hi all,
I've been following the tutorial
http://docs.djangoproject.com/en/dev/intro/tutorial01/#playing-with-the-api
and working on a own test-project as well.
so I tried to adapt from
class Poll(models.Model):
question = models.CharField('question',max_length=200)
def __unicode__(self):
return self.question
to this
class Poll2(models.Model):
question_number = models.IntegerField()
def __unicode__(self):
return self.question_number
to list the actual question number instead of Question Object in the
admin interface.
Somehow it was not working. How do I need to do it so it's right?
cheers,
seb
--~--~---------~--~----~------------~-------~--~----~
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]
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
-~----------~----~----~----~------~----~------~--~---