Edycja paragrafów.
[redakcja.git] / apps / bookthemes / views.py
1 # Create your views here.
2
3 import logging
4 log = logging.getLogger('platforma.bookthemes')
5
6 from django.http import HttpResponse
7 from django.utils import simplejson as json
8 from bookthemes.models import Theme
9
10 def index(request):
11     themes = Theme.objects.all().values_list('name', flat=True).order_by('name')
12     
13     return HttpResponse(json.dumps(list(themes)), mimetype="application/json")
14
15
16