In my model for my application, I've created a class called Season.
There is only one field in this class and that is called year and its
of type integer.  In another class called Game, I have a field called
season which is a ForeignKey to Season.  When I bring up the add Game
form in the Admin, my Season select box only displays 'Season Object'
instead of the value of the season.  How do I get the season to
display in the select box of my season field on the Game form?
Normally this would be fixed by using def __unicode__(self) but since
its not a CharField, I can't use that.  I tried def __integer__(self)
but that didn't make a difference.

I'm pretty new to Django and I'm loving it so far.

Thanks!


--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to