From 9a6d540a8666b19293dec6595205c9d9b887a244 Mon Sep 17 00:00:00 2001 From: Isaac Bythewood Date: Sun, 3 Mar 2013 22:48:30 +0000 Subject: [PATCH] Bug fix submitter filter --- pinry/static/js/pinry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pinry/static/js/pinry.js b/pinry/static/js/pinry.js index c8db996..33fb10e 100644 --- a/pinry/static/js/pinry.js +++ b/pinry/static/js/pinry.js @@ -77,7 +77,7 @@ $(window).load(function() { // Fetch our pins from the api using our current offset var apiUrl = '/api/v1/pin/?format=json&order_by=-id&offset='+String(offset); if (tagFilter) apiUrl = apiUrl + '&tag=' + tagFilter; - if (userFilter) apiUrl = apiUrl + '&submitter_username=' + userFilter; + if (userFilter) apiUrl = apiUrl + '&submitter__username=' + userFilter; $.get(apiUrl, function(pins) { // Set which items are editable by the current user for (var i=0; i < pins.objects.length; i++)