It’ll help to see the model, view, and form involved here.
(When posting code, enclose the code between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This forces the forum software to keep your python code properly formatted.)
This does nothing for you. You’re creating a function which calls super, which is what would happen anyway if you didn’t supply this function. What are you trying to accomplish by this?
regarding the save function.
I am getting null from form.save().
so,I was following this blog for returning the instance after save so I will have the id: https://www.py4u.net/discuss/1269910
“override the save method of your model and return the instance after the super call.”
I read that thread. Both the description is poor, and the answer misunderstands the real issue and the problem caused by it. The person wrote a method on a class and forgot to specify that the first parameter received is self. The workarounds and the answer are, uh, suboptimal at best. (Trying to create an instance of the model from within the model class is also not the right approach.)
Your save method is doing nothing.
Regarding your specific issue, we need to see the complete view. When a view is concerned, there’s no such thing as “not relevant code”.