Fix #5408 - ignore non-int offset in api feed
authorLoic Dachary <loic@dachary.org>
Mon, 25 Jan 2016 10:26:33 +0000 (17:26 +0700)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 25 Jan 2016 20:09:19 +0000 (12:09 -0800)
commit7c9af02ab627da4642e34db2e152e5a218165aad
treef202dd9922d40161f63d97aa7a51b056e38e66a8
parent63b5959fd456cbb6529286c46336a318e2b15289
Fix #5408 - ignore non-int offset in api feed

In the same fashion limit=BAD fallsback to the default value,
fallback to zero when offset=WORSE.

Also add test coverage verifying limit/offset do the right thing.

Signed-off-by: Loic Dachary <loic@dachary.org>
mediagoblin/api/views.py
mediagoblin/tests/test_api.py