[Answered ]-Django Rest Framework – Cannot POST because username already exists

1👍

You’ve created a OneToOne relationship with VolunteerHours and Volunteers, meaning only one of each can exist in a relationship. Like @DEEPAK KUMAR says, you’ll want to remove primary_key=True, but you’ll also want to change the relationship to be OneToMany via the ForeignKey field.

Leave a comment