How To Access Manytooneforeignkey Data Without Making Extra Queries In Wagtail(django)
I have the following two classes in my app.models and i'm using the wagtail APIs to get the data as json class States(Page): name=models.CharField(max_length=50) class Cities(
Solution 1:
Adding the name there isn't possible without having to override bits of Wagtail's API module.
But this is something we are working on for version 2 of the API (see: https://github.com/kaedroho/weps/blob/api-fields/draft/005-wagtail-api-fields.rst#nested-objects).
Post a Comment for "How To Access Manytooneforeignkey Data Without Making Extra Queries In Wagtail(django)"