Is possible run code when an object (table) is created? I would auto-
populate some fields

Something as in Django ORM:
------------------------------------------------------------------------------------------
   def save(self):
        """ Overload the default 'save' method to auto-populate
fields.
        """
        # If it is being saved for the first time
        if not self.id:
------------------------------------------------------------------------------------------


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

Reply via email to