Tabs, meet your new overlords: spaces

In a quest to reach pep8, use spaces to indent rather than tabs.
This commit is contained in:
Magnus Hagander
2019-01-17 15:30:25 +01:00
parent b2ed494655
commit 87237f6536
121 changed files with 5331 additions and 5331 deletions

View File

@ -5,19 +5,19 @@ import json
from models import MailingList, MailingListGroup
def listinfo(request):
resp = HttpResponse(content_type='application/json')
groupdata = [ {
'id': g.id,
'name': g.groupname,
'sort': g.sortkey,
} for g in MailingListGroup.objects.all()]
listdata = [ {
'id': l.id,
'name': l.listname,
'groupid': l.group_id,
'active': l.active,
'shortdesc': l.shortdesc,
'description': l.description,
} for l in MailingList.objects.all()]
json.dump({'groups': groupdata, 'lists': listdata}, resp)
return resp
resp = HttpResponse(content_type='application/json')
groupdata = [ {
'id': g.id,
'name': g.groupname,
'sort': g.sortkey,
} for g in MailingListGroup.objects.all()]
listdata = [ {
'id': l.id,
'name': l.listname,
'groupid': l.group_id,
'active': l.active,
'shortdesc': l.shortdesc,
'description': l.description,
} for l in MailingList.objects.all()]
json.dump({'groups': groupdata, 'lists': listdata}, resp)
return resp