#3995: Give the Message model a type (success/failure/generic)
----------------------------+-----------------------------------------------
   Reporter:  joe4444       |                Owner:  nobody        
     Status:  new           |            Component:  Core framework
    Version:  SVN           |           Resolution:                
   Keywords:  auth message  |                Stage:  Accepted      
  Has_patch:  1             |           Needs_docs:  1             
Needs_tests:  1             |   Needs_better_patch:  1             
----------------------------+-----------------------------------------------
Comment (by xian):

 I think type as a slugfield makes sense. That way you can use them as css
 classes and deal with them in the templates a bit easier. And it would be
 good to be able to get to them separately in the templates {{ messages }}
 all messages. {{ messages.warning }} just the messages with
 type='warning'.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3995#comment:8>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to