# Creating user and profile with single rest\_framework endpoint

**URL:** https://forum.codewithmosh.com/t/creating-user-and-profile-with-single-rest-framework-endpoint/22084
**Category:** Django
**Created:** [August 18, 2023, 9:20pm UTC](https://forum.codewithmosh.com/t/creating-user-and-profile-with-single-rest-framework-endpoint/22084 "2023-08-18T21:20:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![giwabdul](https://avatars.discourse-cdn.com/v4/letter/g/ce73a5/32.png) [@giwabdul](https://forum.codewithmosh.com/u/giwabdul)
#### Post date: [August 18, 2023, 9:20pm UTC](https://forum.codewithmosh.com/t/creating-user-and-profile-with-single-rest-framework-endpoint/22084/1 "2023-08-18T21:20:31Z")

</div>

I have a task that involves creating a doctor user endpoint, the basic user auth fields and doctor specific profile info has to be provided during signup.  
In the 6 chapter of Django series part 2, a similar serializer was used but no explanation on how to create views for the particular scenario.

```auto
class UserCreateSerializer(BaseUserCreateSerializer): 
    birth_date = serializers.DateField(read_only=True)

    class Meta (BaseUserCreateSerializer.Meta): 
        fields = ['id', 'username', 'password', 'email', 'first_name', 'last_name', 'birth_date']

```

In the above scenario how do I save birth\_date to the user profile after the user has been created.
