#NEWLINE# def get_urls( self ) : #NEWLINE# #INDENT# urlpatterns = super ( RedisServerAdmin , self ) . get_urls ( ) #NEWLINE# try : #NEWLINE# #INDENT# from django.conf.urls import patterns , url #NEWLINE# #UNINDENT# except ImportError : #NEWLINE# #INDENT# from django.conf.urls.defaults import patterns , url #NEWLINE# #UNINDENT# def wrap( view ) : #NEWLINE# #INDENT# def wrapper( * args , **kwargs ) : #NEWLINE# #INDENT# return self . admin_site . admin_view ( view ) ( * args , ** kwargs ) #NEWLINE# #UNINDENT# return update_wrapper ( wrapper , view ) #NEWLINE# #UNINDENT# return ( patterns ( '' , url ( '^(\\d+)/inspect/$' , wrap ( self . inspect_view ) , name = 'redisboard_redisserver_inspect' ) ) + urlpatterns )