from opps.articles.models import ArticleBox


def set_context_data(self, SUPER, **kwargs):
    context = super(SUPER, self).get_context_data(**kwargs)

    context['articleboxes'] = ArticleBox.objects.filter(
        channel__long_slug=self.long_slug)
    if self.slug:
        context['articleboxes'] = context['articleboxes'].filter(
            article__slug=self.slug)

    return context

from opps.articles.models import ArticleBox


def set_context_data(self, SUPER, **kwargs):
    context = super(SUPER, self).get_context_data(**kwargs)

    context['channel_long_slug'] = self.long_slug
    context['articleboxes'] = ArticleBox.objects.filter(
        channel__long_slug=self.long_slug)
    if self.slug:
        context['articleboxes'] = context['articleboxes'].filter(
            article__slug=self.slug)

    return context

Add context channel_long_slug on articles
Add context channel_long_slug on articles

  from opps.articles.models import ArticleBox
  
  
  def set_context_data(self, SUPER, **kwargs):
      context = super(SUPER, self).get_context_data(**kwargs)
  
+     context['channel_long_slug'] = self.long_slug
      context['articleboxes'] = ArticleBox.objects.filter(
          channel__long_slug=self.long_slug)
      if self.slug:
          context['articleboxes'] = context['articleboxes'].filter(
              article__slug=self.slug)
  
      return context
  
Add context channel_long_slug on articles
## Code Before:
from opps.articles.models import ArticleBox


def set_context_data(self, SUPER, **kwargs):
    context = super(SUPER, self).get_context_data(**kwargs)

    context['articleboxes'] = ArticleBox.objects.filter(
        channel__long_slug=self.long_slug)
    if self.slug:
        context['articleboxes'] = context['articleboxes'].filter(
            article__slug=self.slug)

    return context

## Instruction:
Add context channel_long_slug on articles
## Code After:
from opps.articles.models import ArticleBox


def set_context_data(self, SUPER, **kwargs):
    context = super(SUPER, self).get_context_data(**kwargs)

    context['channel_long_slug'] = self.long_slug
    context['articleboxes'] = ArticleBox.objects.filter(
        channel__long_slug=self.long_slug)
    if self.slug:
        context['articleboxes'] = context['articleboxes'].filter(
            article__slug=self.slug)

    return context
