Permalink
Browse files

and handle status resource too

  • Loading branch information...
1 parent 506761a commit 4f4b9cca640cb356e6f5d41ba370341491974f84 @andymckay andymckay committed Apr 9, 2013
Showing with 3 additions and 2 deletions.
  1. +2 −1 lib/services/resources.py
  2. +1 −1 solitude/urls.py
@@ -4,12 +4,13 @@
from django.core.cache import cache
from django.db import DatabaseError
-from services.services import StatusError, StatusObject as Base
+from tastypie_services.services import StatusError, StatusObject as Base
import logging
log = logging.getLogger('s.services')
+
class StatusObject(Base):
@property
View
@@ -40,7 +40,7 @@
services.register(ErrorResource(set_handler=handle_500))
if getattr(settings, 'CLEANSED_SETTINGS_ACCESS', False):
services.register(SettingsResource())
-services.register(StatusResource())
+services.register(StatusResource(set_handler=handle_500))
urlpatterns = patterns('',
url(r'^proxy/', include('lib.proxy.urls')),

0 comments on commit 4f4b9cc

Please sign in to comment.