Re: Help with Abstract class and admin.py

2008-11-20 Thread Karen Tracey
On Thu, Nov 20, 2008 at 10:15 AM, JimR <[EMAIL PROTECTED]> wrote: > > Karen, > > Thanks for your help. Here's what I've done: > > I've commented out the list_display for GameAdmin and defined a > __unicode__ for game as: > >def __unicode__(self): >return '%s vs. %s' % (se

Re: Help with Abstract class and admin.py

2008-11-20 Thread JimR
Karen, Thanks for your help. Here's what I've done: I've commented out the list_display for GameAdmin and defined a __unicode__ for game as: def __unicode__(self): return '%s vs. %s' % (self.team.name, self.opponent) That returns values in the admin display as "Team 1

Re: Help with Abstract class and admin.py

2008-11-19 Thread Karen Tracey
On Wed, Nov 19, 2008 at 9:30 PM, JimR <[EMAIL PROTECTED]> wrote: > > Karen, > > Thanks for the quick response, and sorry, I do have quotes around > them, I just mistyped when I added them back in for the purposes of > this post. > > Here's the abbreviated Team model, and the corrected Admin Manage

Re: Help with Abstract class and admin.py

2008-11-19 Thread JimR
Karen, Thanks for the quick response, and sorry, I do have quotes around them, I just mistyped when I added them back in for the purposes of this post. Here's the abbreviated Team model, and the corrected Admin Manager. We do not have a __unicode__ method defined for the Team model. I've repost

Re: Help with Abstract class and admin.py

2008-11-19 Thread Karen Tracey
On Wed, Nov 19, 2008 at 5:13 PM, JimR <[EMAIL PROTECTED]> wrote: > > We have defined the following models: > > class AbstractEvent(models.Model): >team = models.ForeignKey(Team) >description = models.TextField(null=True, blank=True) >description_rendered = models.TextField(

Help with Abstract class and admin.py

2008-11-19 Thread JimR
We have defined the following models: class AbstractEvent(models.Model): team = models.ForeignKey(Team) description = models.TextField(null=True, blank=True) description_rendered = models.TextField(null=True, blank=True) when = models.DateTimeField() where