Hi guys, I tried django-registration 0.5 today, it is powerful indeed, but I have a site-specific user profile just like this writen in my model.py
class Userdetail(models.Model): user = models.ForeignKey(User, primary_key = True) # nickname = models.CharField(max_length=30) DOB = models.DateField() country = models.CharField(max_length=30, default = "CN") # province = models.CharField(max_length=30) #省份 city = models.CharField(max_length=15) #城市 gender = models.BooleanField() # male true, female false phone = models.PhoneNumberField() # phone ip = models.IPAddressField() # last login IP bio = models.CharField(max_length=200) # bio for user def_club = models.ForeignKey(ClubMember) In the source code of django-registration, it said that #To enable creation of a custom user profile along with the # ``User`` (e.g., the model specified in the # ``AUTH_PROFILE_MODULE`` setting), define a function which # knows how to create and save an instance of that model with # appropriate default values, and pass it as the keyword # argument ``profile_callback``. This function should accept one # keyword argument: # ``user`` # The ``User`` to relate the profile to. But still I don't know how to implement this, anyone could give me a simple example? thanks very much --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---