def admin_context(request):
 if (django.VERSION < (1, 8, 0)):
  return admin.site.each_context()
 return admin.site.each_context(request)

def admin_context ( request ) : if ( django . VERSION < ( 1 , 8 , 0 ) ) : return admin . site . each_context ( ) return admin . site . each_context ( request )
wrapper to get admin context .