Django user profil auto création does not work on Admin site
===

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]

        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... 