|
|
|
@ -400,6 +400,8 @@ class ExpoMembers(ListView): |
|
|
|
def add_note(request, slug): |
|
|
|
def add_note(request, slug): |
|
|
|
args = {'success': False} |
|
|
|
args = {'success': False} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if request.user.is_authenticated(): |
|
|
|
|
|
|
|
|
|
|
|
if request.GET: |
|
|
|
if request.GET: |
|
|
|
text = request.GET['note_text'] |
|
|
|
text = request.GET['note_text'] |
|
|
|
try: |
|
|
|
try: |
|
|
|
@ -421,4 +423,8 @@ def add_note(request, slug): |
|
|
|
args['success'] = True |
|
|
|
args['success'] = True |
|
|
|
args['text'] = text |
|
|
|
args['text'] = text |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
args['not_authorized'] = True |
|
|
|
|
|
|
|
args['success'] = True |
|
|
|
|
|
|
|
|
|
|
|
return HttpResponse(json.dumps(args), content_type='application/json') |
|
|
|
return HttpResponse(json.dumps(args), content_type='application/json') |