Let's say you have a
MyModel.related_model and this
related_model has all fields either
User.userprofile which I use on several places in my project. Is it better to create it immediately after
User has been created?
either this way:
def save(... super().save(... UserProfile.objects.create(user=self)
@receiver(post_save... def create_userprofile(... UserProfile.objects.get_or_create(user=self)
or should I create it when
User first time goes to "Update profile" page?
Is there a pattern for that (excluding some special situations)?