I think the way to do is:
from django.contrib import messages
then somewhere...
messages.add_message(request, messages.ERROR, "your error message")
The message will be displayed in the top of the next admin page
On 01/03/2011 09:40 PM, Acorn wrote:
> I'd like to know this too.
>
> On 3
I'd like to know this too.
On 3 January 2011 17:25, rahul jain wrote:
> Hi,
>
> How to display an error in django admin (the error should be displayed in
> red just like in forms)
>
> Something of this form
>
>
Hi,
How to display an error in django admin (the error should be displayed in
red just like in forms)
Something of this form
http://groups.google.com/group/django-users/browse_thread/thread/68d4ea1915654134/447ef8473cf86672
Thanks.
Rahul
--
You received this message because you are
3 matches
Mail list logo