I have this route:
url(r'^profile/(?P<user_id>\d+)/?(.+)$', Profile.as_view())
The problem is that when I go to /profile/12345
the last digit gets cut off when being passed in to the handler. So I get user_id=1234
. However if I go to /profile/12345/
or /profile/12345/user_namethen
user_id=12345` like I expect it. Does anyone have any idea why my last digit is getting cut off?