from django.views.generic import ListView

from topics.models import Topic, TopIssue


class LandingView(ListView):
    model = Topic
    template_name = 'landing.html'

    def get_context_data(self, **kwargs):
        context = super(LandingView, self).get_context_data(**kwargs)
        context['top_issues'] = TopIssue.objects.all()[:4]
        print context
        return context

from django.views.generic import ListView

from topics.models import Topic, TopIssue


class LandingView(ListView):
    model = Topic
    template_name = 'landing.html'

    def get_context_data(self, **kwargs):
        context = super(LandingView, self).get_context_data(**kwargs)
        context['top_issues'] = TopIssue.objects.all()[:4]
        return context

Print statement snuck in there
Print statement snuck in there

  from django.views.generic import ListView
  
  from topics.models import Topic, TopIssue
  
  
  class LandingView(ListView):
      model = Topic
      template_name = 'landing.html'
  
      def get_context_data(self, **kwargs):
          context = super(LandingView, self).get_context_data(**kwargs)
          context['top_issues'] = TopIssue.objects.all()[:4]
-         print context
          return context
  
Print statement snuck in there
## Code Before:
from django.views.generic import ListView

from topics.models import Topic, TopIssue


class LandingView(ListView):
    model = Topic
    template_name = 'landing.html'

    def get_context_data(self, **kwargs):
        context = super(LandingView, self).get_context_data(**kwargs)
        context['top_issues'] = TopIssue.objects.all()[:4]
        print context
        return context

## Instruction:
Print statement snuck in there
## Code After:
from django.views.generic import ListView

from topics.models import Topic, TopIssue


class LandingView(ListView):
    model = Topic
    template_name = 'landing.html'

    def get_context_data(self, **kwargs):
        context = super(LandingView, self).get_context_data(**kwargs)
        context['top_issues'] = TopIssue.objects.all()[:4]
        return context
