Still no dice. I'm noticing a couple quirks. The first comes where I
have two fields prepopulating from one:

Class Event(models.Model):
    name = models.CharField(maxlength=200)
    slug = models.SlugField(prepopulate_from=("name",))
    print_title = models.CharField(maxlength=200,
prepopulate_from=("name",))

Slug prepopulates, but not print_title. However, if I take the
prepopulate_from option out of slug, print_title prepopulates fine. The
other issue comes with ForeignKey fields:

class Event(models.Model):
    venue_db = models.ForeignKey(Place)
    print_venue = models.CharField(maxlength=200,
prepopulate_from("venue_db",))

In this case, print_venue doesn't fill with anything. Even weirder,
slug no longer prepopulates from name under these conditions. It's like
prepopulate stops functioning. According to FireBug, there are still no
Javascript errors. The __str__method in Place returns an equivalent of
self.name, as it should.

Following that, I tried to prepopulate only slug from venue_db, but
that didn't work either. I restarted Apache following every change, so
although I'm probably overlooking something, I'm at least not
overlooking that. According to the docs, prepopulate_from is only
classified as an extra option for SlugFields. If that's true, I can
understand why this doesn't work. But otherwise, I'm stumped.

Thanks,
Chase


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to