Fix bug causing crash in create_user view

This change fixes the following error when accessing the route "/admin/users/{id}/edit":

`TypeError: __json__() missing 1 required positional argument: 'request'`