title: NoReverseMatch error when filtering from Django ListView ('is not a valid view function or pattern name')
body: <p>I'm trying to filter the objects from a Django ListView to render them in a template, but I'm getting a 'NoReverseMatch at' error ('Reverse for 'advanced' not found. 'advanced' is not a valid view function or pattern name'). Here are my Model, View, URL, and href:</p>
  <pre><code>**Model**
  class Course(models.Model):
      location = models.ForeignKey(Location, blank=True, null=True, on_delete=models.CASCADE)
      title = models.CharField(max_length=200)
      level = models.CharField(max_length=200)
      date = models.CharField(max_length=200)
      price = models.DecimalField(max_digits=6, decimal_places=2)
      image = models.ImageField(null=True, blank=True)
  
      def __str__(self):
          return self.title
  
      def get_absolute_url(self):
      # establishes canonical url for the Course model
          return reverse('course_detail', args=[str(self.id)])
  
  
  **View**
  class AdvancedListView(ListView):
      model = Course
      context_object_name = 'course_list'
      template_name = 'courses/advanced.html'
  
      def get_queryset(self):
          return Course.objects.filter(
              level__icontains='Advanced')
  
  
  **URL**
  from django.urls import path
  from .views import CourseListView, CourseDetailView, SearchResultsListView, AdvancedListView
  
  urlpatterns = [
      path('', CourseListView.as_view(), name='course_list'),
      path('&lt;int:pk&gt;/', CourseDetailView.as_view(), name='course_detail'),
      path('search/', SearchResultsListView.as_view(), name='search_results'),
      path('courses/', AdvancedListView.as_view(), name='advanced'),
  ]
  
  
  **Link**
  &lt;a class=&quot;dropdown-item&quot; href=&quot;{% url 'advanced' %}&quot;&gt;Advanced&lt;/a&gt;
  </code></pre>