from django.conf.urls import patterns, url, include
from django.utils.translation import ugettext as _

from .views import (
    RealmView,
    EntityDetailView,
    EntityNetworkView,
)

entity_urls = [
    url(r'^$', RealmView.as_view(), name='overview'),
    url(r'^(?P<type>[\w-]+)/(?P<slug>[\w-]+)/$',
        EntityDetailView.as_view(),
        name='entity_detail'),
    url(r'^(?P<type>[\w-]+)/(?P<slug>[\w-]+)/graph\.json$',
        EntityNetworkView.as_view(),
        name='entity_detail'),
]

urlpatterns = patterns('', *entity_urls)

@@ -481,30 +481,34 @@
 ame='entity_
-detail
+graph_json
 '),%0A%5D%0A%0Aurlpa

Fix name of entity graph url