We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ValueError: bulk_create() prohibited to prevent data loss due to unsaved related object 'article'.
It happens as bulk_create does not call save(). (Django: bulk_create)
bulk_create
save()
The model’s save() method will not be called, and the pre_save and post_save signals will not be sent.
PortalViewCount.objects.bulk_create() succeeds after Article.objects.bulk_create()
PortalViewCount.objects.bulk_create()
Article.objects.bulk_create()
python3 manage.py crawl_portal_manual --start="2024.03.25"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
It happens as
bulk_create
does not callsave()
. (Django: bulk_create)Expected behavior
PortalViewCount.objects.bulk_create()
succeeds afterArticle.objects.bulk_create()
To Reproduce
python3 manage.py crawl_portal_manual --start="2024.03.25"
The text was updated successfully, but these errors were encountered: