more djangooish way checking of request 'method'