Model structure is like below:
class Video(models.Model):
video_header = models.CharField(max_length=350, verbose_name="Video Başlığı", blank=False, null=False)
video_description = models.TextField(verbose_name="Video Açıklaması", blank=False, null=False)
date_created = models.DateField(auto_now_add=True, verbose_name="Oluşturma Tarihi", blank=False, null=False)
video = fields.VimeoField(null=True, blank=True)
def __str__(self):
return self.video_header
class Meta:
verbose_name = "Video İçeriği"
verbose_name_plural = "Video İçerikleri"
When I click on any video object which created in django admin to edit it, get " 'NoneType' object is not iterable " error. But actually there is a object and it is not "None" when I look at database and also checked it in frontend. So it seems like meanless to me. Could you please help me to get through this problem.
source https://stackoverflow.com/questions/70057866/django-vimeo-nonetype-object-is-not-iterable
Comments
Post a Comment