armstrong/armstrong.hatband — pull request #17 by joncotton (2012-06-29 01:34:15+00:00)
Title: Streamline syntax, AJAX requests and error responses

The commits are pretty self-explanatory, but two additional notes.

When a well node rendered a preview of itself, it made a request with unnecessary parameters. It actually used all the parameters it had. While that didn't cause a problem because the extra params were not used in the Python view, this is cleaner. The "DELETE" param was the troublesome thing that got me looking at this.

example: `http://site.com/admin/armstrong/search/?prefix=nodes-5-&order=10&content_type=64&object_id=32661&well=5&id=163&DELETE=`

The second update is to `render_model_preview()` so it returns HTTP error responses. `type_and_model_to_query()` is also updated to match with more accurate error responses.