Answer the question
In order to leave comments, you need to log in
Is it possible in the Django 1.11 admin to display (dynamically) a JSONField broken into fields from this json structure?
Good time of the year!
We have a model with JSONField . Any extra is stored there. information when the user fills out the form. Question: is it possible (preferably dynamically, without being tied to a specific schema) for the Django admin panel to generate a structure from this json, in the form of fields to fill in?
For example, json like:
{
'breed': 'labrador',
'name': 'Bob',
}
breed
and name
, with the corresponding values. And, if in some material a more voluminous scheme is added to this JSONField field, it will also display them (also like text fields). That is, the output is completely dynamic and depends only on the schema that was stored in the Postgres database field. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question