On 7/25/07, z0n3z00t <[EMAIL PROTECTED]> wrote: > Does anyone have any idea how I could hook into and change the field's > value as soon as the value gets loaded from the db?
This is something that's been raised before, and there were a few ideas proposed. Malcolm's looking over a variety of Field subclassing issues, including what you're asking for. That's not a great answer, but in the meantime, you might want to take a look at the lazy instantiation in the GIS branch[1]. That code isn't exactly what you want, but it might help get you started on a descriptor-based approach to do what you're asking for until there's a proper solution. -Gul [1] http://code.djangoproject.com/changeset/5657 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
