All pastes #480522 Raw Edit

Someone

public python v1 · immutable
·published 2007-05-10 10:01 UTC
rendered paste body
>>> faq_db = Faq.objects.all().distinct()>>> a = []>>> for f in faq_db:...  a.append(Question.objects.filter(faq=f).count())...  ... Traceback (most recent call last):  File "<console>", line 2, in <module>AttributeError: 'module' object has no attribute 'append'