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

Feature Request: Link to Admin Page of ForeignKey #152

Closed
guettli opened this issue Aug 3, 2015 · 5 comments
Closed

Feature Request: Link to Admin Page of ForeignKey #152

guettli opened this issue Aug 3, 2015 · 5 comments

Comments

@guettli
Copy link
Contributor

guettli commented Aug 3, 2015

If you use the selectable widget in the django admin interface, it would be very nice to have a link to the admin page of the selected ForeignKey.

I added a screenshot. This is the way I would like to see it:

selectable

In this example: If you click on [edit] you get to the admin page of the object "System" of model "Type".

I have not looked at the source yet. Maybe I am missing something and this is already possible :-)

What do you think?

Would you accept a patch?

Do you prefer to code this yourself?

@mlavin
Copy link
Owner

mlavin commented Aug 3, 2015

Yes if this could be made to work it would be accepted. Sounds similar to #145.

@guettli
Copy link
Contributor Author

guettli commented Aug 4, 2015

In #145 the screenshot has a pencil and "delete" icon. I don't see them in my case. I just see the "add" icon.

Where does the pencil icon come from?

What happens if you press it?

@mlavin
Copy link
Owner

mlavin commented Aug 4, 2015

As noted in the case, those come from django-admin-enhancer which is available as an external app prior to 1.8 but landed in Django itself in 1.8. Clicking the pencil icon takes you to the edit page for the item as you were describing here.

@guettli
Copy link
Contributor Author

guettli commented Aug 4, 2015

If Django 1.8 brings this feature, there is no need to implement this in django-selectable.

I close my issue.

PS: We are currently in the upgrade process to Django1.7. It's quite hard since there are many apps with dependencies.

@guettli guettli closed this as completed Aug 4, 2015
@gamesbook
Copy link

@guettli " It's quite hard since there are many apps with dependencies."

Welcome to the wonderful world of the open source pyramid stack - the higher you climb ...

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

No branches or pull requests

3 participants