mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00
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>
This commit is contained in:
parent
f6ab721ea0
commit
f5922091b4
|
@ -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'^$',
|
||||
|
|
Loading…
Reference in New Issue
Block a user