[Fixed]-Overriding the Update method of Django queryset

17👍

If I have understood your question correctly, you are unable to call the update method in the super class. if so that’s because you are calling it wrong. Here is how:

super(PollQuerySet,self).update(*args, **kwargs)

In the case of python 3.x the class name and self become optional parameters. So the above line can be shortened to

super().update(*args, **kwargs) 
👤e4c5

Leave a comment