title: How to call reverse() with an argument for a given url that has an argument?
body: <p>I have a django model defined as </p>
  
  <pre><code>from utils.utils import APIModel
  from django.db import models
  from django.core.urlresolvers import reverse
  
  class DjangoJobPosting(APIModel):
      title = models.CharField(max_length=50)
      description = models.TextField()
      company = models.CharField(max_length=25)
  
      def get_absolute_url(self):
          return reverse('jobs.views.JobDetail', args=[self.pk])
  </code></pre>
  
  <p>with a view</p>
  
  <pre><code>from restless.views import Endpoint
  from restless.models import serialize
  from .models import *
  from utils.utils import JSON404
  
  import ujson as json
  
  class JobList(Endpoint):
      def get(self, request):
          fields = [
              ('url', lambda job: job.get_absolute_url()),
              'title',
              ('description',lambda job: job.description[:50]),
              'id'
          ]
          jobs = DjangoJobPosting.objects.all()
          return serialize(jobs, fields)
  
  class JobDetail(Endpoint):
      def get(self, request, pk):
          try:
              job = DjangoJobPosting.objects.get(pk=pk)
              print(job)
              fields = ["title","description","company","id"]
              return serialize(job,fields)
          except Exception as e:
              return JSON404(e)
  </code></pre>
  
  <p>What I have seen in other posts which talk about reverse method is that they define the first reverse parameter in the terms I specified above, but their urls.py uses the same kind of definition, while mine uses</p>
  
  <pre><code>from django.conf.urls import patterns, include, url
  from .views import *
  
  urlpatterns = patterns('',
      url(r'^$',JobList.as_view()),
      url(r'^(?P&lt;pk&gt;\d+)/$', JobDetail.as_view()),
  )
  </code></pre>
  
  <p>What I keep getting is an error that states</p>
  
  <pre><code>"Reverse for 'jobs.views.JobDetail' with arguments '(1,)' and keyword arguments '{}' not found."
  </code></pre>