* Objective create and save a row/record to the table defined as AUTH_PROFILE_MODULE via the instructions in models.py
I'll demonstrate what I've tried to do so far, all which seemed logical but had no effect other than adding a row to auth.user and registration.registrationprofile. my custom profile still did not append. Strategy 1 ****************************************************** in models.py i defined and called the following method as def profile_callback(user): new_user_profile = UserProfile.objects.create(user=user, status="1") new_user_profile.save() # Result - No error but no adding to table was found ******************************************************* Strategy 2 ******************************************************** in models.py from from mysite.myproject models import MyprojectProfile # then in create_inactive_user i added these lines new_custom_profile = MysiteProfile.objects.create(user=user) new_custom_profile.save() # Result - returned error on create MysiteProfile is not global object ******************************************************************* Strategy 3 ************************************************************ in models.py # underneath the line registration_profile = self.create_profile(new_user) # i added registration_profile.save() # result ************************************************************ All I want to do is add "user" field to my custom profile as defined in Mysite.Myproject with django-registration, yet from reading the code and trying examples from this forum and attempting to code based on the existing logic, can't seem to make this happen. Any suggestions, pointers, or clues to a solution would be appreciated. --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---