Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Posts returned by the API contain unpublished ones #2361

Closed
davidbgk opened this issue Dec 4, 2019 · 0 comments · Fixed by #2578
Closed

Posts returned by the API contain unpublished ones #2361

davidbgk opened this issue Dec 4, 2019 · 0 comments · Fixed by #2578

Comments

@davidbgk
Copy link
Member

davidbgk commented Dec 4, 2019

Detailed Description

When I get Posts from the API, it contains unpublished posts, like "content": "plop":
https://www.data.gouv.fr/api/1/posts/?page_size=10

Context

We were investigating how to retrieve associated datasets to a post (not really relevant for the issue)

Possible Implementation

See:
https://github.com/opendatateam/udata/blob/master/udata/core/post/api.py#L78-L79

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

Successfully merging a pull request may close this issue.

1 participant