On 1/20/07, Christian Joergensen <[EMAIL PROTECTED]> wrote:
>
> I suspect there is some django magic happening behind the scenes, and
> maybe the setattr trick is not at all possible. Can anyone shed some
> light on this?

Yes - the model class has a metaclass that is used to convert the
member fields in the model declaration and turns them into attributes.

It's not 'magic' - just python metaclasses - and it's call contained
in django.db.models.base

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to