Skip to content

fix recruitmentsettings success redirect

Bengfort requested to merge fix-study-pk-reverse into main

Steps to reproduce:

  • go to /studies/1/recruitmentsettings/
  • click "Save"
Reverse for 'recruitmentsettings' with keyword arguments '{'pk': 1}' not found. 1 pattern(s) tried: ['studies/(?P<study_pk>[0-9]+)/recruitmentsettings/$']

The issue is that the argument is called study_pk, not pk. This is a regression from !1621 (merged).

We usually use positional args instead of kwargs for reverse(), so I used that to fix the issue.

Merge request reports