Ok I found a way;

I'm passing messages to the user via get_current_user method from
ThreadLocals* middleware,
and with the help of jQuery** I'm supressing admin's default
messagelist style for messages that contains certain word:

This is jQuery code which added to base_site.html's extrahead block:
<script type="text/javascript" src="/static/jquery.js"></script>
<script>jQuery(function($) {$
('ul.messagelist').find('li').contains('ERROR').css('background',
'red').css('color', 'black').fadeTo(5000, 0.7);});</script>


* http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
**http://docs.jquery.com/Tutorials:How_to_Get_Anything_You_Want




On Mar 22, 3:08 pm, "Evren Esat Ozkan" <[EMAIL PROTECTED]> wrote:
> No reply from anyone? Is that mean this is not possible?  Should I
> write a custom view just for informing user?
>
> Please, any help or comment would be  so appreciated.
>
> On Mar 21, 4:42 am, "Evren Esat Ozkan" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I'm checking a field's value againts related object and deciding
> > saving or not.
> > But I can't a way to inform user about save state.
> > Searched  for way of "redirecting to error page" or "passing custom
> > error messages to admin templates" but found nothing.
> > (custom valitador is useless because field_data is not paired with
> > object id)
>
> > Any help would be greatly appreciated,
>
> > Thanks,


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to