I am using django-registration. I have created a class named "Statistics" with a one-to-one relation with each instance of the class User.
Every time a new User is created via the /accounts/register page, I would like to be able to create a new instance of the class "Statistics" and associate it to the just created User.
My question is, where should I have to write the code to do that? Where should I place the code to be executed each time a new User is created? Something along the lines of:
s = Statisics ( comments = 0, thanked = 0, user = UserThatWasJustCreated)
Thanks.