title: How to inject same context in many different Django views?
body: <p>I want to put info about one object in many views without repeating it in get_context_data in each view. As u understand i need a class with get_context_data inside, that i can mix with other views. 
  Here in my example i want to see 'some_object' in context of UpdateAnotherObjectView:</p>
  
  <pre><code>class BaseObjectInfoView(View):
      def get_context_data(self, **kwargs):
          context_data = super(BaseObjectInfoView, self).get_context_data(**kwargs)
          context_data['some_object'] = SomeObjects.objects.get(pk=1)
          return context_data
  
  class UpdateAnotherObjectView(BaseObjectInfo, UpdateView):
      template_name = 'create_object.html'
      form_class = AnotherObjectForm
      model = AnotherObjects
  
      def get_context_data(self, **kwargs):
          context_data = super(UpdateAnotherObjectView, self).get_context_data(**kwargs)
          context_data['all_another_objects'] = AnotherObjects.objects.all()
          return context_data
  </code></pre>
  
  <p>it works, but get_context_data is not a part of parent 'View' class. May be i need more special class to inherit from in BaseObjectInfoView? </p>
  
  <p>or maybe better to construct context with another method ? </p>