Is there a way to get the data but not save it yet in Django API framework?

When saving to the db using Django, there is such thing where variable.save(commit=False) . This is to don’t save yet but allow the user to edit the information before saving. How do i do the same thing when using Django API framework. I tried the commit=False, it says it does not exist

Hi CalvinTheCat, can you elaborate on what this would look like from the user experience perspective? It sounds like you want the user to make changes, and persist between requests, but not be saved to the database.

If that is indeed the case, then that’s usually something to be stored in the session.

If you’re looking for technical help with an error when using variable.save(commit=False), can you please provide more code and context?