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
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
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
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
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(
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
6 matches
Mail list logo