1👍
✅
You can display the name changing the method __unicode__
of VideoData to:
def __unicode__(self):
return self.video_name
EDIT:
Add method __str__
to VideoData
:
def __unicode__(self):
return self.video_id
def __str__(self):
return self.video_name
👤bcap
0👍
I displayed names with following change:
def __unicode__(self):
return self.video_name
def __str__(self):
return self.video_id
- Nose test case fails to set up with "Transaction managed block ended with pending COMMIT/ROLLBACK"
- How to deserialize xml in Django?
- 'HttpResponse' object has no attribute 'get_absolute_url'
- Django query on value of a ForeignKey field
Source:stackexchange.com