I have an entry already in my database table and i want to update it with the values 12 and 6. But for some reason the update function doesn't seem to be doing anything. I dont want to create a new instance, i just want to write over the value that are already in there. PF is the name of my DB table. I understand that the objects links both to the pass_number and fail_number attributes of the table model, so i presume that both would be updated with the values. However when I go into the table i still see the old values.
event1 = PF(
pass_number = 12,
fail_number = 6,
)
event1.objects.update(event1)
The error i see in the terminal is:
TypeError: update() takes 1 positional argument but 2 were given