On 6/28/06, Chase <[EMAIL PROTECTED]> wrote:
> I'd like to set up an admin form that will use something like a
> SlugField's prepopulate_from to fill several text fields with
> information from foreignkey, float, and other fields. It doesn't seem
> Django's current function will meet my needs, but I'm trying to figure
> out the best way to proceed before I start hacking around with
> Javascript. Here's a bit of pseudocode:
>
> class Player(models.Model):
> team = models.ForeignKey(Team)
> team_text = models.CharField(maxlength=100,
> prepopulate_from=('team',))
>
If Django's current function doesn't handle this, I would consider
that a bug. What does it currently do -- include the raw ID value of
the team rather than the display name?
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---