On 21 May 2011 05:51, Chris Seberino <cseber...@gmail.com> wrote: > I have a model class called Message with an attribute called text. > > ** When I pass a list of these objects called messages to my template, > it doesn't show up. > > ** When I instead create this derivative called fred, that *does* > work... > fred = [e.text for e in messages] > > Why would fred work fine in template but not messages? [snip]
Is the messaging framework configured (note that it is by default)? I'd imagine its context processor is overriding your variable. I think you will have to disable it or choose another name for your template context variable. See here: http://docs.djangoproject.com/en/1.3/ref/contrib/messages/ Cheers, Duane. -- "I never could learn to drink that blood and call it wine" - Bob Dylan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.