16👍
✅
You need to actually return the result of the call to super().
return super(MyModelAdmin, self).response_change(request, obj)
0👍
Maybe you could add a more detailed stacktrace?
Where does the Error occur? Do you create a response? Otherwise get_response
might implicitly return None
therefor the error.
- [Django]-Django session lost when redirected from facebook oauth
- [Django]-How frequently should Python decorators be used?
- [Django]-Django ignoring translated strings from third party module
- [Django]-How to modify the app name in Django admin's urls?
- [Django]-Django Multi-Table-Inheritance and Left Outer Joins
0👍
You need to return "super().response_change(request, obj)" as shown below:
class MyModelAdmin(admin.ModelAdmin):
def response_change(self, request, obj):
// perfom my actions
return super().response_change(request, obj) # Here
- [Django]-TypeError: add() argument after * must be a sequence, not Subscribers
- [Django]-How do I send XML POST data from an iOS app to a Django app?
- [Django]-Any clue on this error with generic relation using Django Orm?
Source:stackexchange.com