Django reverse url to onetoonefield on success <p>Good day SO!</p> <p>Recently I've started working on Django, got myself a situation which I can't find the right solution on the web to solve it. So I've got a little question about URL reversing on a success. Currently when an user successfully creates an account, the user gets reversed to a profile based on the user_id which just got created: </p> <pre><code>class Create(CreateView): form_class = UserCreateForm # inherits from django's UserCreationForm def get_success_url(self): return reverse('users:profile', kwargs={'pk': self.object.pk}) </code></pre> <p>This is working properly. Now I created a profile module with a OneToOneField to the django.auth.models User model. When creating a new account, a signal is send to the create_profile_on_registration method.</p> <pre><code>@receiver(post_save, sender=User) def create_profile_on_registration(sender, created, instance, **kwargs): ... </code></pre> <p>This is also working properly, a new profile is created on user account registration. Now I would like to reverse the user to the new created profile_id instead of the user_id. However, I cant figure out exactly how to get this properly to work. Can you give me a little push in the right direction on how to approach this issue? I can't match up the right google search words or find any examples which explains or shows how to achieve this properly.</p> <p>Thanks in advance!</p>