This happens because "result" is class level attribute, not instance one, and its expected behaviour in Python.
To made result instance attribute, define it in your __init__: class Demo(): def __init__(self): self.result = [] def do_something(self): self.result.append(1) self.result.append(2) self.result.append(3) return self.result -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/80ad2ab0-aa87-46ac-8ad6-cc60ce33fe34%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.