Allow supplying extra arguments for serializer
Allow supplying extra arguments for serializer

Example:

Assumption: User model requires extra arguments when a new user is created

With the current implementation, there's no way to supply these extra arguments without overriding AND duplicating most of perform_create's code
But now, it's possible override perform_create as follows:

def perform_create(self, serializer): # overrides djoser's perform_create
    # some code to get/calculate the required extra arguments for creating the user
    my_required_argument_to_create_a_user = 3.14159
    some_more_args = request.something # say, a dict
    return super().perform_create(serializer,my_required_argument_to_create_a_user=my_required_argument_to_create_a_user, **some_more_args)

------
For consistency, I added the same logic to perform_update.
sunscrapers/djoser,sunscrapers/djoser,sunscrapers/djoser