Skip to content

Commit

Permalink
update URL for autocomplete lookups for M2M relationships
Browse files Browse the repository at this point in the history
In commit 45b9666, the URL for M2M autocomplete lookups was changed
to lookupUrls.related, which appears to have been unintentional. This
commit restores the original location, lookupUrls.m2m, and rebuilds
all affected JS via gulp.
  • Loading branch information
Steven Maggs authored and fdintino committed Feb 3, 2017
1 parent 2c71dc4 commit dd2accb
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 43 deletions.
65 changes: 29 additions & 36 deletions nested_admin/static/nested_admin/dist/nested_admin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nested_admin/static/nested_admin/dist/nested_admin.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions nested_admin/static/nested_admin/dist/nested_admin.min.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions nested_admin/static/nested_admin/src/nested-admin/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ DJNesting.initRelatedFields = function(prefix, groupData) {
});
$.each(lookupFields.m2m || [], function(i, m2m) {
$(form).djangoFormField(m2m).each(function() {
$(this).grp_related_m2m({lookup_url: lookupUrls.related});
$(this).grp_related_m2m({lookup_url: lookupUrls.m2m});
});
});
$.each(lookupFields.generic || [], function() {
Expand Down Expand Up @@ -136,7 +136,7 @@ DJNesting.initAutocompleteFields = function(prefix, groupData) {
return;
}
$this.grp_autocomplete_m2m({
lookup_url: lookupUrls.related,
lookup_url: lookupUrls.m2m,
autocomplete_lookup_url: lookupUrls.autocomplete
});
});
Expand Down

0 comments on commit dd2accb

Please sign in to comment.