-
Notifications
You must be signed in to change notification settings - Fork 10
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
Open the django admin doc model on double click #17
base: main
Are you sure you want to change the base?
Conversation
Thanks for this! Things are a little busy for me right now, but I will get back to look at this eventually! |
Do you have any suggestions when this functionality will be added ? It looks like very helpfull :))) |
I'm job-hunting at the moment, so I expect there's going to be a small delay before I get back to working on this. |
Thank you for your replay |
if (adm_slug.indexOf('Abstract') !== -1) {return} //the abstract property should be inside properties | ||
var n = adm_slug.lastIndexOf("."); | ||
adm_slug = adm_slug.substring(n+1).replace("/", "."); | ||
window.open("/admin/doc/models/" + adm_slug, '_blank'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This being hard-coded means it should at least be documented in the README that it must be that path.
Ideally some use of reverse(..)
would occur so that it isnt hard-coded.
fwiw, the double click isnt working for me. I havent worked out why yet.
I still haven't forgotten this (or #16), but on reflection, I've decided that while the features they add are great, I hope to see it implemented in another way. The current architecture doesn't allow for the approach I have in mind, so I hope to spend some time refactoring before revisiting this feature. |
I had this idea of landing on to the django admindocs when you double click on a node.
I'm not even sure if it's a good idea or not, I thought it would be good to be able to land on a more detailed description of a model if needed.