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

Save file in Django 1.4 returns to wrong change list #192

Closed
evildmp opened this issue Jun 25, 2012 · 2 comments
Closed

Save file in Django 1.4 returns to wrong change list #192

evildmp opened this issue Jun 25, 2012 · 2 comments
Milestone

Comments

@evildmp
Copy link
Contributor

evildmp commented Jun 25, 2012

Say you have an item at

  • /admin/filer/image/1/

When you Save it, you're not returned to its folder, for example:

  • /admin/filer/folder/1/list/

but to the generic admin change list:

  • /admin/filer/image
@evildmp
Copy link
Contributor Author

evildmp commented Jun 25, 2012

Why this seems to happen:

admin.fileadmin.FileAdmin.response_change() expects to find "../" in super(FileAdmin, self).response_change(request, obj)["Location"], but in Django 1.4 instead gets "/admin/filer/image/".

@yakky
Copy link
Member

yakky commented Jun 25, 2012

Which is the best strategy to detect a successful save?
Search for a value in response Location looks pretty ugly.

yakky added a commit to nephila/django-filer that referenced this issue Jun 25, 2012
stefanfoulis added a commit that referenced this issue Jun 28, 2012
Fix for issue #192. Just a tentative approach ATM
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