mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
Use this layer index's URL for layer branch
If we're integrating the layer index and the RRS, no need to jump off to the OE index if for example this is an internal index. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
e50c2e6841
commit
6ca3d6649e
|
@ -7,7 +7,7 @@ from datetime import date, datetime
|
|||
from django.http import Http404
|
||||
from django.shortcuts import get_object_or_404
|
||||
from django.views.generic import ListView, DetailView, RedirectView
|
||||
from django.core.urlresolvers import resolve, reverse
|
||||
from django.core.urlresolvers import resolve, reverse, reverse_lazy
|
||||
from django.db import connection
|
||||
|
||||
from layerindex.models import Recipe
|
||||
|
@ -41,8 +41,7 @@ def _check_url_params(upstream_status, maintainer_name):
|
|||
raise Http404
|
||||
|
||||
def _get_layer_branch_url(branch, layer_name):
|
||||
return ("http://layers.openembedded.org/layerindex/branch/%s/layer/%s/"\
|
||||
% (branch, layer_name))
|
||||
return reverse_lazy('layer_item', args=(branch, layer_name))
|
||||
|
||||
class Raw():
|
||||
""" Raw SQL call to improve performance
|
||||
|
|
Loading…
Reference in New Issue
Block a user