Some of the built-in DRF View methods that get called by Swagger when
generating API documentation require kwargs; these are obviously missing
during schema generation. This fix protects those methods by returning
dummy values when the in "swagger-mode".
Some of the built-in DRF View methods that get called by Swagger when generating API documentation require kwargs; these are obviously missing during schema generation. This fix protects those methods by returning dummy values when the in "swagger-mode".