Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

API: error message missing variable #14

Open
romuald opened this issue Oct 4, 2016 · 1 comment
Open

API: error message missing variable #14

romuald opened this issue Oct 4, 2016 · 1 comment

Comments

@romuald
Copy link
Member

romuald commented Oct 4, 2016

Using an invalid value as the limit parameter will raise an error with an invalid message:

% curl http://baobab.local/api/events'?limit=20truc'

Invalid limit '%s' provided. Please provide a positive integer.

But should be Invalid limit '20truc' provided. Please provide a positive integer.

@MoiTux
Copy link
Contributor

MoiTux commented Oct 9, 2016

This has been fix upstream see commit
We used tastypie version 0.9.10 to have the fix we need at least 0.9.12
We could create our own paginator to fixed it but I don't think it's worth it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants