title: Django view got an unexpected keyword argument
body: <p>I have a following url pattern:</p>
  
  <pre><code>urlpatterns = pattern('',
      ...
      url(r'edit-offer/(?P&lt;id&gt;\d+)/$', login_required(edit_offer), name='edit_offer'),
  )
  </code></pre>
  
  <p>and a corresponding edit_offer view:</p>
  
  <pre><code>def edit_offer(request, id):
    # do stuff here
  </code></pre>
  
  <p>a link on offer page leads to edit offer view:</p>
  
  <pre><code>&lt;a class="btn" href="{% url edit_offer offer.id %}"&gt;Edit&lt;/a&gt;
  </code></pre>
  
  <p>clicking on the button throws a TypeError:</p>
  
  <pre><code>edit_offer() got an unexpected keyword argument 'offer_id'
  </code></pre>
  
  <p>Any ideas what is going on? I don't see what's wrong here. I have other views with similar patterns and they all work ok.</p>