Commit 001ea4b6 by Michael Cetrulo

don't use self.__class__ with super()

I also thought this was clever, but I was wrong... oh so wrong...

http://www.reddit.com/r/Python/comments/977eo/protip_stop_hardcoding_the_class_name_when_using/c0bo068
parent 931055bd
......@@ -12,7 +12,7 @@ class MongoDebugPanel(DebugPanel):
has_content = True
def __init__(self, *args, **kwargs):
super(self.__class__, self).__init__(*args, **kwargs)
super(MongoDebugPanel, self).__init__(*args, **kwargs)
operation_tracker.install_tracker()
def process_request(self, request):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment