1

How can I update many_to_many fields with the bulk_update method in Django?

Code:

get_user_model().objects.using('default').bulk_update(
    User.objects.using('default').all(), ('password','groups')
)

Error:

{ValueError}bulk_update() can only be used with concrete fields.

Phoenix
  • 3,996
  • 4
  • 29
  • 40

0 Answers0