Hi all,

is there any possibility to inform user in a Django admin about  
anything from field class?

Let's have some custom field on a model. And I would like to inform  
user about anything after he pushes save button in Django admin form.

class SomeField(models.FileField):
     .
     .
     .
     def post_save(self, sender, instance, created, *args, **kwargs):
         '''
         Do something here and if it goes wrong,
         inform user on a form page.
         '''
         .
         .

Thx for any ideas.
Freon

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to