2👍
✅
You need to add the __unicode__
attribute for the name to show up.
class ParentEvents(models.Model):
name=models.CharField(max_length=70)
def __unicode__(self):
return u"%s" % self.name
The same for Event
model as you would run into similar issues for the same.
Read more on __unicode__
here
Source:stackexchange.com