aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2018-02-15 14:03:37 +1300
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-02-15 14:08:20 +1300
commitf5922091b4c8b888849df158548453b73f92a377 (patch)
tree98c25d3a6cb85609a4f915a622508177fa358363 /layerindex
parentf6ab721ea0d0115c840062ca667a6a3592020824 (diff)
downloadopenembedded-core-contrib-f5922091b4c8b888849df158548453b73f92a377.tar.gz
Fix router pointing layerBranches URL to new layers view
For reasons that are not immediately clear to me, if you don't specify a name when adding the ViewSet it takes one from the model used in the queryset in the ViewSet. The new layers view uses LayerBranch and so it silently replaced the layerBranches URL in the router, even though the URL itself was still present. Unfortunately that's broken Toaster. Specify a name to restore the old URL. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex')
-rw-r--r--layerindex/urls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/layerindex/urls.py b/layerindex/urls.py
index a665a31d76..7deaf230bc 100644
--- a/layerindex/urls.py
+++ b/layerindex/urls.py
@@ -25,7 +25,7 @@ router.register(r'recipes', restviews.RecipeViewSet)
router.register(r'machines', restviews.MachineViewSet)
router.register(r'distros', restviews.DistroViewSet)
router.register(r'classes', restviews.ClassViewSet)
-router.register(r'layers', restviews.LayerViewSet)
+router.register(r'layers', restviews.LayerViewSet, 'layers')
urlpatterns = patterns('',
url(r'^$',