Skip to content
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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

md-f
Copy link

@md-f md-f commented Apr 2, 2020

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.

@meshy
Copy link
Owner

meshy commented Apr 3, 2020

Thanks for this! Things are a little busy for me right now, but I will get back to look at this eventually!

@J4CKVVH173
Copy link

Do you have any suggestions when this functionality will be added ? It looks like very helpfull :)))

@meshy
Copy link
Owner

meshy commented Apr 25, 2020

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.

@J4CKVVH173
Copy link

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');
Copy link

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.

Base automatically changed from master to main March 7, 2021 22:14
@meshy
Copy link
Owner

meshy commented Dec 17, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants