Changes between Version 5 and Version 6 of DevModelCreation
- Timestamp:
- Apr 14, 2008, 5:49:06 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevModelCreation
v5 v6 45 45 === Preparing The Class === 46 46 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.47 Once 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. 48 48 49 49 The 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.