`reverse` not required. You can directly `redirect('groups:show_group', args=[group.url])`. 

This comment implies in other lines too.