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

feature request API headles #170

Open
onno-timmerman opened this issue Nov 5, 2019 · 1 comment
Open

feature request API headles #170

onno-timmerman opened this issue Nov 5, 2019 · 1 comment

Comments

@onno-timmerman
Copy link

It would be nice to add wagtail trans to headless options of wagtail. So when you see you rest api you can see the language of each page and corresponding translated pages.

@onno-timmerman onno-timmerman changed the title feature request feature request API headles Nov 5, 2019
@bufke
Copy link

bufke commented Nov 8, 2019

You could add APIField('language') to your page models. You'd get the normal foreign key representation by default but could supply a serializer if you wanted it differently.

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

No branches or pull requests

3 participants