<s> from django import template <EOL> register = template . Library ( ) <EOL> def show_messages ( context ) : <EOL> messages = context [ '<STR_LIT>' ] . user . get_and_delete_messages ( ) <EOL> return { '<STR_LIT>' : messages } <EOL> register . inclusion_tag ( '<STR_LIT>' , takes_context = True ) ( show_messages ) </s>
