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
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):
"
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,
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
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
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
6 matches
Mail list logo