Formset Messages
        Posted  
        
            by Dave
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Dave
        
        
        
        Published on 2010-06-03T20:19:06Z
        Indexed on 
            2010/06/09
            19:22 UTC
        
        
        Read the original article
        Hit count: 236
        
I want to be able to send a message using the new messages framework. Something along the lines of :
...
if formset.is_valid    
    return HttpResponseRedirect( some page )   
    messages.add_message(request,messages.INFO, '%i objects added') %formset.number_of_forms
But two questions:
- Im not sure if i should put the messages before or after the render to response
- Is there a method akin to number_of_forms
© Stack Overflow or respective owner