after_create is a hook executed when commit in database is made when new record is craeted:
app/models/ticket.rb after_create :do_something def do_something(self) code ...code ... end Such thins allows You to do some tasks when application writes or change database data i.e send email to sysadmin that there change in customer service type for non standart value :) Thanx for reply looks like I'll ned to do this as some function in views.py with some try except chain.. Regars, Spock. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---