title: django cant use global variable in class based view
body: <p>my view is like this</p>
  
  <pre><code>class RecordView(View):
      record_form = RecordForm
      record_files = {}
      templare = 'acquisition.html'
  
      def get(self, request, *args, **kwargs):
          fil = urllib.urlopen('/home/student/wwww.jpg')
          self.record_files = {'small_cover': SimpleUploadedFile('hehe.jpg', fil.read())}
          rr_form = self.record_form()
          return render(request, self.template_name, {'rr_form': rr_form,
                                              })
      def post(self, request, *args, **kwargs):
          record = RecordForm(request.POST, self.record_files)
          record.save()
          HttpResponseRedirect('/')
  </code></pre>
  
  <p>Here i have populated self.record_files in get method.. but after i post data i see self.record_files as empty dictionary. I get confused here. What can  i do to do so.</p>