title: Got "ValueError: invalid literal for int() with base 10: 'Trancel'" when using two paramenters in detailview in Django
body: <p>I am trying to use two other url tags other then pk and slug in a detail view. I have the following code snippet:</p>
  
  <pre>
  views.py
  
      class UseCaseDetailView(DetailView):
          template_name = "useCaseExtract/useCaseDetail.html"
          model = UseCaseProfile
          context_object_name = 'usecaseprofile'
          '''I am trying to override the get_object method of DetailView to accept url tags project and usecasename instead of pk and slug'''
          def get_object(self):     
              obj = get_object_or_404(UseCaseProfile, project=self.kwargs['project'], useCasename=self.kwargs['useCasename'])
              return obj
  
  urls.py
  ...
  
      path('/UseCaseDetail/', UseCaseDetailView.as_view(), name='UseCaseDetail')
  
  ...
  
  in my template file, I have the following link:
  /Trancel/UseCaseDetail/Nothing
  
  after I clicked the link, I got:
  ValueError: invalid literal for int() with base 10:  'Trancel'
  
  can you some please explain to me why I am getting this error?
  </pre>