Re: how to display custom messages in admin site

2008-08-30 Thread Bora Savas
Hi, You want to modify these messages or add your own messages ? If it's the latter, look at here; http://www.djangoproject.com/documentation/authentication/#messages You can simply create your messages; request.user.message_set.create(message="Your message comes here") On Aug 29, 10:15 pm

Re: how to display custom messages in admin site

2008-08-29 Thread V
I think you should be able to customize it by simply defining a response_add method in the corresponding class of your admin.py class MyAdmin(admin.ModelAdmin): as your admin interface is derived from ModelAdmin and response_add is defined in it by creating def response_add(self, request, ob

Re: how to display custom messages in admin site

2008-08-29 Thread Karen Tracey
On Fri, Aug 29, 2008 at 9:47 AM, truebosko <[EMAIL PROTECTED]> wrote: > > Basically lets you over-ride templates. Maybe that message is simply > part of a template, not sure .. but hopefully that helps. > No, these messages are not part of the templates. You can see where they are built in the c

Re: how to display custom messages in admin site

2008-08-29 Thread truebosko
I'm not sure on that specific one, but you can over-ride admin templates piece by piece See: http://www.djangoproject.com/documentation/tutorial02/#customize-the-admin-look-and-feel Basically lets you over-ride templates. Maybe that message is simply part of a template, not sure .. but hopeful

Re: how to display custom messages in admin site

2008-08-29 Thread Karen Tracey
On Fri, Aug 29, 2008 at 9:15 AM, Dennis Schmidt <[EMAIL PROTECTED]>wrote: > > Hello everybody, > > when you do something like saving an object in the admin site this > small yellow bar on top will show up, telling you something like > "correctly saved". I'd like to display my own custom messages t