Re: How is profile_callback in django-registration supposed to work?

2007-06-26 Thread Sam
The trunk version of django-registration has been modified and it is now even more simple to create a profile object. Edit registration/urls.py : # Import your profile object from profile.models import Profile # add the dict with your profile creation function url(r'^regi

Re: How is profile_callback in django-registration supposed to work?

2007-06-24 Thread Sam
This is how i use profile_callback with django-registration : 1. define the profile_callback function : # profile/models.py from django.db import models from django.contrib.auth.models import User from django.utils.translation import gettext_lazy as _ class ProfileManager(models.Manager): "

Re: How is profile_callback in django-registration supposed to work?

2007-06-19 Thread patrick k.
profile_callback, defined in registration.models (of course, you could also define it somewhere else ...) from www.user.models import UserProfile ... def profile_callback(user): new_user_profile = UserProfile.objects.create(user=user,

Re: How is profile_callback in django-registration supposed to work?

2007-06-19 Thread [EMAIL PROTECTED]
Patrick, could you share your def profile_callback, or at least the important parts of it. I'm still not getting anything created. On Jun 19, 1:04 pm, "patrick k." <[EMAIL PROTECTED]> wrote: > I´m using profile_callback=True and then def profile_callback(user) ... > > it works. > > patrick > > Am

Re: How is profile_callback in django-registration supposed to work?

2007-06-19 Thread patrick k.
I´m using profile_callback=True and then def profile_callback(user) ... it works. patrick Am 19.06.2007 um 20:02 schrieb [EMAIL PROTECTED]: > > I've set: > def create_inactive_user(self, username, password, email, > send_email=True, profile_callback=create_site_user): > > also tried profile_ca

How is profile_callback in django-registration supposed to work?

2007-06-19 Thread [EMAIL PROTECTED]
I've set: def create_inactive_user(self, username, password, email, send_email=True, profile_callback=create_site_user): also tried profile_callback=create_site_user() -- wrong number of arguments and profile_callback=create_site_user(new_user) but new_user doesn't exist yet. I have a create_sit