Over sticky messages

9 views
Skip to first unread message

Yehonatan Daniv

unread,
Mar 29, 2012, 9:30:21 AM3/29/12
to pywe...@googlegroups.com
Hi all,

I'm using Django's message FW in a site that uses Satchmo, among other stuff.

My problem is that messages are too sticky.
If I make a few rapid requests then it can show the same message more then once.
If I go to a page that shows a message it will, many times, show this message on the next page I go to.

I know about this, maybe it's just that.

Is this a known issue? Is it related to Satchmo? Or is it just me :P

Thanks,
~Y

Meir Kriheli

unread,
Mar 29, 2012, 9:46:39 AM3/29/12
to pywe...@googlegroups.com
A shot in the dark:

According to the docs, message should be cleared once the iterator is done. You can try turning it into a list, so that it finished iterating, and then loop that list.

Something like:
{% for message in messages|make_list %}

--
You received this message because you are subscribed to the Google Groups "PyWeb-IL" group.
To post to this group, send email to pywe...@googlegroups.com.
To unsubscribe from this group, send email to pyweb-il+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyweb-il?hl=en.



--

Yehonatan Daniv

unread,
May 3, 2012, 3:46:57 AM5/3/12
to pywe...@googlegroups.com
Sorry for the delay, just got back to that issue...

Meir,
What you suggested turns the messages object into its unicode representation and then i'm left with a string.

Anyone else ran into this? can shed some light here?

Thanks,
~Y
Reply all
Reply to author
Forward
0 new messages