class Author
class AuthorForm(ModelForm):
class Meta:
model = Author
exclude = ("status",)
class Author(models.Model):
name = models.ForeignKey(User)
status = models.CharField(max_length=30)
Hello,
Try giving your models a __unicode__ method, so that you can
manage how they are displayed.
For example:
class Author(models.Model):
name = models.ForeignKey(User)
status = models.CharField(max_length=30)
def __unicode__(self):
return self.name
Cheers,
Kev
This is something you need to fix in your Model, not your ModelForm.
Give the Model a __unicode__ method.
--
Dennis K.
The universe tends towards maximum irony. Don't push it.