title: issue with django context processor
body: <p>Context processor does not work when href inside templates redirect to details </p>
  
  <p>context_processor.py</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>from .models import Category
  
  
  def  polls_category(request):
   for e in Category.objects.all():
     name=e.title
     return {"polls_category":name}</code></pre>
  </div>
  </div>
  </p>
  
  <p>Context_processor in settings.py</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code> 'OPTIONS': {
              'context_processors': [
                  'django.template.context_processors.debug',
                  'django.template.context_processors.request',
                  'django.contrib.auth.context_processors.auth',
                  'django.contrib.messages.context_processors.messages',
                  'products.context_processors.polls_category'
              ],
          },</code></pre>
  </div>
  </div>
  </p>
  
  <p>Template</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>{% for obj in gili_list %}
  
  &lt;p&gt;&lt;small&gt;&lt;a href='{{obj.get_absolute_url}}'&gt;{{polls_category}}&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
  {% endfor %}</code></pre>
  </div>
  </div>
  </p>
  
  <p>views.py</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>class CategoryListView(ListView):
   model = Category
  
   template_name = "products/product_list.html"
  
   def get_context_data(self, *args, **kwargs):
  
    context = super(CategoryListView, self).get_context_data(*args, **kwargs)
  
    context['gili_list'] = Category.objects.all()
    return context</code></pre>
  </div>
  </div>
  </p>
  
  <p>models.py</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>class Category(models.Model):
   title = models.CharField(max_length=120, unique=True)
   slug = models.SlugField(unique=True)
   description = models.TextField(null=True, blank=True)
   
   active = models.BooleanField(default=True)
   timestamp = models.DateTimeField(auto_now_add=True, auto_now=False)</code></pre>
  </div>
  </div>
  </p>