Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

model.save() and model.objects.filter() giving zero result half of the time. #674

Open
navkantsingh opened this issue Aug 9, 2023 · 0 comments

Comments

@navkantsingh
Copy link

navkantsingh commented Aug 9, 2023

I have logs to prove this.

This is a similar code to what I am doing in the system.

model.objects.get(id = "ABC")
models.name = "new_name"
models.save()
updated_model = model.objects.filter(id = "ABC")

Traceback

updated_model is an empty queryset most of the time, can you please look into that this could be an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant