-
Notifications
You must be signed in to change notification settings - Fork 64
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
“X” and “pencil” icon 404 #145
Comments
Thanks for the kind words! Just to be clear, are you are changing just the widget of a FK to use one of the autocomplete widgets to produce this behavior? |
Hi @mlavin, thanks so much for your reply.
And thanks again for this awesome bit of code! It's a life saver. I wish this functionality was built-in to Django. With that said, I hope this isn't just an issue due to my particular project setup? I have not tested in a fresh project/app, so I apologize in advance if this issue is specific to my setup.
I am using it on an FK and an inline FK. I'm on Django 1.7.x and Python 3.4.x. The pencil icon is from django-admin-enhancer, but her code (I think) is what made it into the 1.8 release of Django (which now has native pencil icons, which I think are turned off by default). My code, if it's of any help:
|
Thanks for the concrete example. I'll try it out and see if I can reproduce and get a fix in place. |
No problem at all. Sorry I forgot to provide that in my first post. 😊
Wow, that's great! Thanks so much for your time on this. Please let me know if there's anything I can do to help code-wise and/or test with. Thanks @mlavin! Of course, there's no pressure to find a fix. I can easily tell people to avoid typing-in bad values. I suppose another fix would be to implement the "create" functionality (my code does not allow for new objects to be created, but maybe I could turn that on?). Thanks again! This code has been extremely useful. 👍 |
I don't see this behavior in 1.8. There appears to be some difference between |
Interesting! Thanks so much for checking. Please let me know if there is anything I can do to help. I really appreciate your help and time. I owe you many tasty oregon micro-:beers: :octocat:! :) |
Hello,
Thanks for this awesome plugin (I'm using
0.9.0
, Django1.7.4
and Python3.4.x
).Not sure if this is a feature or if I have things not fully setup/functional, but I noticed if I type-in a non-existent value (and the text turns red) and click the pencil icon or the red X buttons, I get a 404 page.
Logically, I get why this happens. For folks that are not geeks, this could be confusing.
It would be pretty cool if the X and pencil would become inactive/disabled when the field turns red.
Thoughts?
Thanks again for sharing this code! It's the best auto complete I've found for the Django admin. 👍
The text was updated successfully, but these errors were encountered: