self refers to your object instance is another object, whose class is not shown there (poor code quality)
This is a DRF serializer?
in this context here, instance is the django model object.
model=models.UserProfile??
Yes, instance inside the serializer create/update methods refer to the model object
Thanks brooooo
Instead of asking people each time "what is this" you better should learn how to use debuggers. You could start from builtin pdb, then learn about ipdb which is ipython wrapper around pdb. Then you should learn about your IDE's debugger like in pycharm. The next step is so called remote debugging, which is useful with docker or any other remote machine.
thank you my friend
Обсуждают сегодня