Hi, Alex! Look at the small merging framework [1]. It allows to track changes of objects and merge them when they change. Here is [2] a usage example formed as unit test:-)
[1]: http://svn.turbion.org/turbion/trunk/turbion/utils/merging.py [2]: http://svn.turbion.org/turbion/trunk/turbion/utils/tests/merging.py On Wed, Nov 12, 2008 at 14:33, Alex S. <[EMAIL PROTECTED]>wrote: > > Hi guys, > > if you're using django-registration, auth and django-profiles there is > a small but (at least for me) important bit of information missing in > the documentation (or elsewhere; it's just completey absent at the > moment). How to "merge" the data of the standard auth.User and the > data for the custom profile. I think it's quite common, that a user > profile should enable the user to change for example the value for > User.email. But that field is already defined in the auth.User table > so it would not be nice to implement it again (together with for > example first_name and last_name from User) in a custom profile (that > would be some sort of duplication). So I'm thinking about a solution > on how to get all these data saved with the views from James Bennett's > django-profiles without copying his entire code and adding support for > two forms (one form for the User profile and one for the custom > additional profile and after that one template that display both > forms). > > That point made it's way into my dreams last night so I really have to > solve it to feel better :-). > > If there is any needed information missing to answer that please just > ask. > > Thanks in advance! > > Best regards, > Alex S. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---