Not sure why this isn't working.
I have:
make = models.ForeignKey(Foo)
model = models.CharField(maxlength=100)
slug = models.SlugField(prepopulate_from=('make','model'))
Foo has
bar = models.CharField(maxlength=100, unique=True)
def __str__(self):
return self.bar
So slug should populate with bar, right? But instead it's populating
with the key Id.
Any ideas?
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---