title: url and django database no object found matching the query with identical working class
body: <p>I can't figure out why OfertoHome view works but not OfertoListView, They both are identical the only thing that is different is in the url.</p>
  
  <pre><code>class OfertoListView(ListView):
      model = Oferto
      paginate_by = 10
      template_name = "ofertoj/oferto_list.html"
  
  def get_context_data(self,**kwargs):
      context = super(OfertoListView,self).get_context_data(**kwargs)
      return context
  
  
  class OfertoHome(ListView):
      model = Oferto
      paginate_by = 10
      template_name = "ofertoj/oferto_list.html"
  
  def get_context_data(self,**kwargs):
      context = super(OfertoHome,self).get_context_data(**kwargs)
      return context
  </code></pre>
  
  <p>urls.py</p>
  
  <pre><code>    url(
  regex=r"^listview/$",
  view=OfertoListView.as_view(),
  name="oferto_listview"
  ),
  
  url(
  regex=r"^$",
  view = OfertoHome.as_view(),
  name ="oferto_home"
  ),
  </code></pre>
  
  <p>Debug Message</p>
  
  <pre><code>   Page not found (404)
  Request Method: GET
  Request URL:    http://127.0.0.1:8000/oferto/listview/
  No oferto found matching the query
  </code></pre>
  
  <p>This is my complete views.py in the app, posted because requested</p>
  
  <pre><code>    #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  # ofertoj.views
  
  from .models import Oferto
  from django.views.generic import CreateView, UpdateView, DetailView
  from django.views.generic import ListView
  
  from turtle.views import Turtle_CreateView,ActionMixin,NameSearchMixin
  from braces.views import LoginRequiredMixin
  
  from forms import OfertoCreateForm,OfertoUpdateForm
  
  
  class OfertoCreateView(LoginRequiredMixin,Turtle_CreateView):
      model = Oferto
      action = "created"
      form_class = OfertoCreateForm
  
  
  class OfertoDetailView(DetailView):
      model = Oferto
  
  class OfertoResultsView(OfertoDetailView):
      template_name = "Oferto/results.html"
  
  class OfertoUpdateView(LoginRequiredMixin,ActionMixin,UpdateView):
      model = Oferto
      action = "created"
      form_class = OfertoUpdateForm
  
  class OfertoListView(ListView):
      model = Oferto
      paginate_by = 10
      template_name = "ofertoj/oferto_list.html"
  
      def get_context_data(self,**kwargs):
          context = super(OfertoListView,self).get_context_data(**kwargs)
          return context
  
  
  class OfertoHome(ListView):
      model = Oferto
      paginate_by = 10
      template_name = "ofertoj/oferto_list.html"
  
      def get_context_data(self,**kwargs):
          context = super(OfertoHome,self).get_context_data(**kwargs)
          return context
  </code></pre>
  
  <p>urls.py</p>
  
  <pre><code>#!/usr/bin/env python
  # -*- coding: utf-8 -*-
  # ofertoj/urls.py
  
  from django.conf.urls import patterns, url
  from views import *
  
  urlpatterns = patterns("",
      url(
      regex=r"^createview/$",
      view=OfertoCreateView.as_view(),
      name="oferto_createview"
      ),
  
  
      url(
      regex=r"^(?P&lt;slug&gt;[-_\w]+)/$",
      view=OfertoDetailView.as_view(),
      name="oferto_detail"
      ),
  
      url(
      regex=r"^(?P&lt;slug&gt;[-_\w]+)/$/results/$",
      view=OfertoResultsView.as_view(),
      name="oferto_results"
      ),
  
      url(
      regex=r"^listview/$",
      view=OfertoListView.as_view(),
      name="oferto_listview"
      ),
  
  
      url(
      regex=r"^(?P&lt;slug&gt;[-_\w]+)/updateview/$",
      view=OfertoUpdateView.as_view(),
      name="oferto_updateview"
      ),
  
      url(
      regex=r"^$",
      view = OfertoHome.as_view(),
      name ="oferto_home"
      ),
  )
  </code></pre>