Improving ManyToManyField with relational databse #179
Closed
danielcatao
started this conversation in
Ideas
Replies: 3 comments 2 replies
-
Perhaps |
Beta Was this translation helpful? Give feedback.
0 replies
-
I can see that selecting Client and Bank again and again can get tiresome. Here's my solution:
|
Beta Was this translation helpful? Give feedback.
2 replies
-
https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#working-with-many-to-many-models (admin.TabularInline) did the job.. Thank you for the attention @bhch |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Relational databases handle a manyToMany relation with a pivot table (ex. people_banks).
A JSON representation of the same relationship could be:
[{"people_id":1, "bank_id":2,"account_type":"gold" }]
A django-jsonform view of this case is:
Today the default Django Admin closest way to handle this N:M diagram is:
However, this limit the use of the pivot attribute account_type.
that said... my question/idea is: Can we improve django-jsonform and consequently django admin itself to handle relation manyToMany better than the actual component "select multiple"? And if yes than how?
Beta Was this translation helpful? Give feedback.
All reactions