TypeError object is not iterable
I am getting the following error when trying to loop over a variable in my Django templates. The variable in question is the related object of the model specified in my DetailView subclass: TypeError at /en/applicants/50771459778/ 'Householdmember' object is not iterable Here is my models.py file: class Applicant(models.Model): user = models.ForeignKey(User, editable=False) bank_card_number = models.CharField(_('Bank card number'),max_length=50, unique=True) site_of_interview = models.IntegerField(_('Site of interview'), choices = SITE_CHOICES, default=TIRANA, blank=False) housenumber = models