Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network/resources/user.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar_network/resources/user.py')
-rw-r--r--sugar_network/resources/user.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sugar_network/resources/user.py b/sugar_network/resources/user.py
index 0c89c3a..f98c416 100644
--- a/sugar_network/resources/user.py
+++ b/sugar_network/resources/user.py
@@ -56,7 +56,8 @@ class User(ad.Document):
def birthday(self, value):
return value
- @ad.document_command(method='GET', cmd='stats-info')
+ @ad.document_command(method='GET', cmd='stats-info',
+ mime_type='application/json')
def _stats_info(self, request):
enforce(request.principal == self['guid'], ad.Forbidden,
'Operation is permitted only for authors')