[Fixed]-Using Django's "update_or_create" function, returns nothing for me

1👍

You’ve created the NewPeople objects just with name; you haven’t set any other attributes. But when you get the something queryset, you query by section_id. You never set any section ids; so that query will always be empty.

Leave a comment