Nice fix. I found one problem. When a user "forgets" to set the OneToOneField and saves the object, Django does not return a nice error message but throws an exception because Django tries to insert a record without the primary key set. Some kind of validation should be added to prevent this. Shall I file a ticket?
The model used to get the exception: from django.db import models from django.contrib.auth.models import User class Profile(models.Model): user = models.OneToOneField( User, ) address = models.CharField( 'address', maxlength = 150, ) zipcode = models.CharField( 'zipcode', maxlength = 50, ) city = models.CharField( 'city', maxlength = 100, ) phone = models.CharField( 'phone', maxlength = 25, blank = True, ) birthday = models.DateField( 'birthday', ) class Admin: pass Cheers, Rudolph --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers -~----------~----~----~----~------~----~------~--~---