As far as I remember, It's not normally available for the fields of
the inline-edited models. However, you can still add some custom
JavaScript to the admin template to implement that functionality.

Good luck!
Aidas Bendoraitis aka Archatas



On 12/27/06, ringemup <[EMAIL PROTECTED]> wrote:

Hello --

I'm having a problem with a model that I have set to edit inline with a
related model.  Basically, the slugs are not auto-populating from the
fields they're supposed to use.  Here's the model in question:

class Player(models.Model):
        name = models.CharField(maxlength=50, core=True)
        slug = models.SlugField(prepopulate_from=['name'], unique=True)
        team = models.ForeignKey(Team, edit_inline=models.TABULAR,
num_in_admin=10, num_extra_on_change=10, null=True, blank=True)
...
(snipped)

Is prepopulation simply not available in inline editing, or did I make
a mistake somewhere?

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