I have the following URL pattern:
urlpatterns = pattern('', ... url(r'edit-offer/(?P<id>\d+)/$', login_required(edit_offer), name='edit_offer'), )
and the corresponding edit_offer view:
def edit_offer(request, id):
The link on the proposal page allows you to edit the proposal presentation:
<a class="btn" href="{% url edit_offer offer.id %}">Edit</a>
clicking on the button raises a TypeError:
edit_offer() got an unexpected keyword argument 'offer_id'
Any ideas what is going on? I do not understand what is wrong here. I have other views with similar patterns, and they all work fine.
Neara
source share