Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Kurek committed Dec 30, 2016
1 parent be61fb7 commit e3c7da5
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/ralph/urls/base.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
from django.conf import settings
from django.conf.urls import include, url
from rest_framework.authtoken import views
from sitetree.sitetreeapp import SiteTree # noqa

from ralph.admin import ralph_site as admin
from ralph.api import router

# monkey patch for sitetree until
# https://github.com/idlesign/django-sitetree/issues/226 will be discussed
# and resolved
SiteTree.current_app_is_admin = lambda self: False

# import custom urls from each api module
# notice that each module should have `urlpatters` variable defined
# (as empty list if there is any custom url)
Expand Down Expand Up @@ -47,10 +53,3 @@

if getattr(settings, 'ENABLE_HERMES_INTEGRATION', False):
urlpatterns += url(r'^hermes/', include('pyhermes.apps.django.urls')),


# monkey patch for sitetree until
# https://github.com/idlesign/django-sitetree/issues/226 will be discussed
# and resolved
from sitetree.sitetreeapp import SiteTree # noqa
SiteTree.current_app_is_admin = lambda self: False

0 comments on commit e3c7da5

Please sign in to comment.