Apparently named url resolution using django reverse() is broken so make a nasty hack instead