title: I am trying to implement soft delete in django
body: <p>I am trying to implement soft delete in django but getting the following error:</p>
  <p><strong>NoReverseMatch at /admin/trip-issue-report/</strong></p>
  <p><strong>Reverse for 'soft-delete-trip-issue' with arguments '(3,)' not found. 1 pattern(s) tried: ['admin/soft\-delete\-trip\-issue/$']</strong></p>
  <p>My code:</p>
  <p><strong>models.py</strong></p>
  <pre><code>class TripIssue(models.Model):
      trip = models.ForeignKey(Trip, on_delete=models.CASCADE)
      issue = models.ForeignKey(Issue, on_delete=models.CASCADE)
      isSolved = models.BooleanField(blank=False, default=False)
      is_deleted = models.BooleanField(default=False)
      deleted_at = models.DateTimeField(blank=True, null=True)
      created_at = models.DateTimeField(auto_now_add=True)
      updated_at = models.DateTimeField(auto_now=True)
  
      def soft_delete(self):
          self.is_deleted = True
          self.deleted_at = timezone.now()
          self.save()
  </code></pre>
  <p><strong>views.py</strong></p>
  <pre><code>class TripIssueSoftDelete(DeleteView):
      model = TripIssue
      success_url = reverse_lazy('trip-issue-report')
      template_name = 'trip_issue.html'
  
      def delete(self, request, *args, **kwargs):
          self.object = self.get_object()
          self.object.soft_delete()
          return HttpResponseRedirect(self.get_success_url()) 
  </code></pre>
  <p><strong>urls.py</strong></p>
  <p><code>path('soft-delete-trip-issue/', views.TripIssueSoftDelete, name=&quot;soft-delete-trip-issue&quot;),</code></p>
  <p><strong>trip_issue.html template</strong></p>
  
  <pre><code>          {% for trip_issue in trip_issues %}
                  &lt;tr&gt;
                    &lt;td&gt;{{trip_issue.trip}}&lt;/td&gt;
                    &lt;td&gt;{{trip_issue.issue}}&lt;/td&gt;
                    &lt;td&gt;{{trip_issue.isSolved}}&lt;/td&gt;
                    &lt;td&gt;{{trip_issue.updated_at}}&lt;/td&gt;
                      &lt;td&gt;&lt;a href=&quot;{% url 'dashboard:soft-delete-trip-issue' trip_issue.id %}&quot;&gt;&lt;i class=&quot;fas fa-minus-circle&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  {% endfor %}
                &lt;/tbody&gt;
  </code></pre>
  <p>So I need your help to fix the issue and implement soft delete successfully.</p>
  <p>Thanks in advance.</p>
  <p>Happy Coding :)</p>