Changes between Version 5 and Version 6 of DevModelCreation


Ignore:
Timestamp:
Apr 14, 2008, 5:49:06 AM (16 years ago)
Author:
Ivan Illarionov
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DevModelCreation

    v5 v6  
    4545=== Preparing The Class ===
    4646
    47 Once all of the attributes have been added, the class creation is just about finished. The {{{Model._prepare}}} method is called. This sets up a few model methods that might be required depending on other options you have selected and adds a primary key field if one has not been explicitly declared. Finally, the ''class_prepared'' signal is emitted and any registered handlers run.
     47Once all of the attributes have been added, the class creation is just about finished. The {{{ModelBase._prepare}}} method is called. This sets up a few model methods that might be required depending on other options you have selected and adds a primary key field if one has not been explicitly declared. Finally, the ''class_prepared'' signal is emitted and any registered handlers run.
    4848
    4949The main beneficiary of receiving ''class_prepared'' at the moment is {{{manipulators.py}}}. It catches this signal and uses it to add default add- and change-manipulators to the class.
Back to Top