-
Notifications
You must be signed in to change notification settings - Fork 127
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
Cannot delete translations in the admin #317
Comments
Hello, |
I gave it a go last night, and was not able to reproduce the bug. Could you please show me a sample of your model / admin that exhibits the bad behavior? Thanks! |
Hi,
Variable object_id is there whole url before /delete-translation/ which contains also '/change' part. |
Hello! Excellent catch. Does it happen when you click the "Delete Translation" link on the change page, or when you confirm deletion in the subsequent page? |
It happens when i click on "Delete Translation" link in change page. |
Thanks. Could you also tell me whether:
Also, just to be sure I'm testing with the right version, can you tell me which Django version you run? |
Thanks for quick response, my url looks for example like: I'm using python 3.5 and django 1.10.4. |
Thanks to you. |
I think found the culprit. A sub-template generates dumb relative urls. Not a problem with numeric pk as the |
Issue should be fixed on master. You can try it using |
Hi,
I've got a model with a string
pk
, e.gcom.test.app
. I can no longer delete translations within the admin, because inside delete_translation theobject_id
parameter is'com.test.app/change'
, where I think it should just becom.test.app
.This triggers the
raise Http404
error.The text was updated successfully, but these errors were encountered: