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

LinkedSelect widget generates broken links (Django 1.7) #294

Open
pix666 opened this issue Oct 7, 2014 · 3 comments
Open

LinkedSelect widget generates broken links (Django 1.7) #294

pix666 opened this issue Oct 7, 2014 · 3 comments

Comments

@pix666
Copy link

pix666 commented Oct 7, 2014

Add button in Django 1.7 includes GET-parameter "_to_field":

<a href="/admin/auto/carmodel/add/?_to_field=id" class="add-another" ...

So, link in LinkedSelect widget becomes like this:

<a class="linked-select-link" href="/admin/auto/carmodel/add/?_to_field=id../1375/" ...
@ibooj
Copy link

ibooj commented Oct 17, 2014

Replace line 93 in sult.js on return $add_link.attr('href').replace('/add/', '/' + value + '/');

@SalahAdDin
Copy link

For what is it? Can you fix this in django-suit official release?

@ibooj
Copy link

ibooj commented Oct 30, 2014

As a temporary solution

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