I think it's a bug on Django administration, when you add a user on the administration site and you have a automatic creation profil on your model, the site crash, due to a problem with the instance witch create the profil :
def create_user_profile(sender, instance, created, **kwargs) :
if created :
data = Profile.objects.get_or_create(user = instance)
profile = data[0]
# Initialisation du profil
profile.user = instance
profile.credits = 0
profile.score = 0
profile.save()
post_save.connect(create_user_profile, sender = User,
dispatch_uid='create_user_profile')
on the admin site, the instance is not the user, the instance is the administrator user.
the solution is to delete this code when you create a user on the admin site, what about another solution ? this is annoying...