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
Edit functionality not working for Relationship Field (sqlmodel) #298
Comments
Yep it does. Basically never show all possible other rows of another table in relationship (as the table could be 10M line long as in my case) :). |
yeah, that's a very common use-case, in Django I think that's |
And when do you think it will have its equivalent in sqladmin? :) |
The PR is almost ready, I just need to add the test coverage for it. I will let you know when it's merged and ideally get it tested by you before the new release :) |
With pleasure! |
@tepelbaum This is merged, it would be great if you can check out the main branch too. |
Hi Amin! I'll do just that :) |
Merged in #292 and will be available in |
Awesome! When is 0.5.0 planned? |
Just released :) |
Awesome! Thanks!! |
Checklist
master
.Describe the bug
When we go on the sql edit admin interface, the Relationship field are not correctly displayed. see the sample code. Only one relation is created between foos and bars. But here is what is displayed
And when we click on edit
On the detailed view everything is fine though
Steps to reproduce the bug
Sample code
Expected behavior
Either the Relationship field should not be edited, or just the foreign key field should appear in the edit template.
Actual behavior
The relationship Fields cannot be edited AND the whole other table is displayed there
Debugging material
No response
Environment
Python 3.10 (python:3.10-slim base image). Latest sqladmin==0.3.0
Additional context
No response
The text was updated successfully, but these errors were encountered: