diff --git a/api/activity.py b/api/activity.py index c228db40d5f58098f78aeb98a627ad43f70c4594..38a74d309b15c35500ebd84411f76a626138a53e 100644 --- a/api/activity.py +++ b/api/activity.py @@ -111,8 +111,8 @@ class PictorialActivityView(APIView): "start_time": request.POST.get('start_time'), "end_time": request.POST.get('end_time'), "version": request.POST.get('version', '0.0.0'), - "banner": request.POST.get('banner'), - "description": request.POST.get('description'), + "banner": request.POST.get('banner', ''), + "description": request.POST.get('description',''), "titles": json.loads(request.POST.get('titles', '[]')) } diff --git a/api/urls.py b/api/urls.py index 9a40ec87deffd8442414fa685616f1b5779fbe75..e9cf6c1935473e107a463e0a76a4974b1a0b2745 100644 --- a/api/urls.py +++ b/api/urls.py @@ -195,7 +195,7 @@ urlpatterns = [ url(r'^activity/pictorial$', PictorialActivityView.as_view()), url(r'^activity/pictorial$', PictorialActivityView.as_view()), url(r'^activity/pictorial/list$', PictorialActivityListView.as_view()), - url(r'^activity/pictorial/online$', PictorialActivityView.as_view()), + url(r'^activity/pictorial/online$', PictorialActivityOlineView.as_view()), # å“牌 url(r'^brand/list$', BrandListView.as_view()),