On 2/16/07, Rob Hudson <[EMAIL PROTECTED]> wrote:
> Cool.  I was looking at how I'd do this but I wouldn't have known
> about the add_to_class in __new__.

There are some notes on the wiki about how the model system works,
useful for anyone who wants to venture in there and patch stuff:

http://code.djangoproject.com/wiki/DevModelCreation

Most things on the model class itself (including its default
exceptions) are added during the call to __new__ (including all the
default model methods, which are curried and attached).

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

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

Reply via email to