typo
This commit is contained in:
parent
dfcf20edae
commit
771cec5779
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ def editPage(request):
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
'''
|
'''
|
||||||
if request.user.get_profile().capabilities('canEditSitePages'):
|
if request.user.get_profile().capability('canEditSitePages'):
|
||||||
data = json.loads(request.POST['data'])
|
data = json.loads(request.POST['data'])
|
||||||
page, created = models.Page.objects.get_or_create(name=data['name'])
|
page, created = models.Page.objects.get_or_create(name=data['name'])
|
||||||
page.body = data['body']
|
page.body = data['body']
|
||||||
|
|
Loading…
Reference in a new issue