[Answer]-Extended CreateView does not give the desired output in the template

1👍

In your Partner model, add a __unicode__ method:

class Partner(models.Model):
    id = models.AutoField(primary_key=True)
    name = models.CharField(max_length=255, blank=True)

    def __unicode__(self):
        return unicode(self.name)

    class Meta:
        db_table = 'partner'

Leave a comment