On Wed, May 20, 2009 at 6:24 AM, Felipe Martinez <ugtgali...@gmail.com>wrote:

>
> Hi, everybody
>
> I've done a simple app using admin actions in django's admin site.
> Everytime somebody executes an action some checks are made and
> messages are delivered informing about actions result (ok, error,
> warnig...etc)
>
> I'm using message_user for that, but that always returns a green check
> mark on yellow background. I would like to use class errornote defined
> in admin's stylesheet to acomplish that.
>
> That sounds easy, but surprisingly I haven't figured out how to do it
> yet
>
> Has anybody found a workaround for this?
>
> Thank you
> >
>
Django doesn't use the user.message_set for displaying those errors.  It
just uses this:
http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/templates/admin/change_form.html#L36
snippet of HTML.  You should be able to just use that.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to