#11324: Tutorial 1 - import datetime
---------------------------+------------------------------------------------
Reporter: Timbadu | Owner: nobody
Status: new | Milestone:
Component: Uncategorized | Version: 1.0
Keywords: Tutorial 1 | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
Where do I put this custom method:
class Poll(models.Model):
# ...
def __unicode__(self):
return self.question
class Choice(models.Model):
# ...
def __unicode__(self):
return self.choice
I've tried a few places with no sucess in runing the shell.
--
Ticket URL: <http://code.djangoproject.com/ticket/11324>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---