title: Reverse django admin custom url with two parameters
body: <p>I have the following custom admin url</p>
  <pre><code>def get_urls(self):
  (...)
  info = self.model._meta.app_label, self.model._meta.model_name
  urlpatterns = [
              path('&lt;path:object_id&gt;/CompareParameters/&lt;int:parameter_id&gt;', wrap(CompareParameters.as_view()), name='%s_%s_CompareParameters' % info),
          ]
  </code></pre>
  <p>and I need to call it from an inline and it takes two parameters (the fact the view's name includes word parameters is just a coincidence)</p>
  <p>I have tried to do it like so</p>
  <pre><code>def pair_parameter(self, obj):
      return mark_safe(f'&lt;a style=&quot;padding: 5px; background-color: lightblue;&quot; target=&quot;_blank&quot; href=&quot;{reverse(&quot;admin:agregator_agregatorproduct_compareparameters&quot;, args=[obj.ProductId_id, obj.DistributionParameterId_id, ])}&quot;&gt;Spárovavat parametr&lt;/a&gt;')
  </code></pre>
  <p>or like so</p>
  <pre><code>def pair_parameter(self, obj):
          return mark_safe(f'&lt;a style=&quot;padding: 5px; background-color: lightblue;&quot; target=&quot;_blank&quot; href=&quot;{reverse(&quot;admin:agregator_agregatorproduct_&quot; + str(obj.ProductId_id) + &quot;_&quot; + str(obj.DistributionParameterId_id) + &quot;_compareparameters&quot;)}&quot;&gt;Spárovavat parametr&lt;/a&gt;')
  </code></pre>
  <p>and by a few other combinations with no success.</p>
  <p>What would be the right way to do it? The final URL looks eg like this</p>
  <p>.../admin/agregator/agregatorproduct/1854146/CompareParameters/9330
  where the first arg is <code>obj.ProductId_id</code> and 2nd is <code>obj.DistributionParameterId_id</code></p>
  <p>Thank you in advance.</p>