fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Przeniesienie skryptów do nowego katalogu scripts.
[redakcja.git]
/
apps
/
api
/
handlers
/
toolbar_handlers.py
diff --git
a/apps/api/handlers/toolbar_handlers.py
b/apps/api/handlers/toolbar_handlers.py
index
be77359
..
5408db3
100644
(file)
--- a/
apps/api/handlers/toolbar_handlers.py
+++ b/
apps/api/handlers/toolbar_handlers.py
@@
-17,9
+17,7
@@
class ToolbarHandler(BaseHandler):
def read(self, request):
groups = toolbar.models.ButtonGroup.objects.all()
def read(self, request):
groups = toolbar.models.ButtonGroup.objects.all()
- return [ {'name': g.name, 'position': g.position,\
- 'buttons': g.button_set.all()} for g in groups ]
-
+ return [g.to_dict(with_buttons=True) for g in groups]
class ScriptletsHandler(BaseHandler):
allowed_methods = ('GET',)
class ScriptletsHandler(BaseHandler):
allowed_methods = ('GET',)