Beispiel #1
0
    def response_add(self, request, obj, *args, **kwargs):
        response = super(GameAdmin, self).response_add(request, obj, *args, **kwargs)

        Game.delete_non_related_images()

        return response
Beispiel #2
0
    def response_change(self, request, obj):
        response = super(GameAdmin, self).response_change(request, obj)

        Game.delete_non_related_images()

        return response