Passing data from a method to a class then returning value in another method
<p>Question how can I pass the value from get_sheet_header class into another method basically I want to the set a HTML response header and my pk then drop it down into another method I use any help would be greatly appreciated and any questions please let me know. </p>

<p>Here is what I have so far </p>

<p>views.py </p>

<pre><code>**#here is where I want to pass the value to my get_sheet_header class** 

def update_sheet(request, pk=None): 
    obj = get_object_or_404(Sheet, pk=pk) 
    form = SheetUpdateForm(request.POST or None, 
                        request.FILES or None, instance=obj) 
    if request.method == 'POST': 
        if form.is_valid(): 
           form.save() 
           return redirect('sheet_update.html') 


    response = render(request, 'app/sheet_update.html', 
      { 
         'sheet_form': form, 
         'title':'Update Sheet', 
      }) 
    response['SHEET_ID'] = pk 
    get_sheet_header.sheet_header(get_sheet_header(pk)) 
    return response 

**#here is my get_sheet_header class** 

class get_sheet_header(object): 
   def __init__(self, s_id): 
     self.s_id = s_id 

   def sheet_header(self): 
      s = self.s_id 
      return s 

**#here is where I want to use the value that the above returns ^** 

def add_dimensions(request, pk): 
  pk = get_sheet_header() #this should be the return value from my get_sheet_header class 
</code></pre>