diff --git a/api/v1/serializers/mixins.py b/api/v1/serializers/mixins.py index 40584503..cfddefd5 100644 --- a/api/v1/serializers/mixins.py +++ b/api/v1/serializers/mixins.py @@ -115,7 +115,7 @@ class DispatchContentMixin(object): setattr(g, obj_type, obj) g.save() if 'images' in cdata: - for image in cdata['images']: + for image in cdata['gallery_images']: if 'img' in image and image['img']: if 'id' in image and image['id']: gi = GalleryImage.objects.get(id=image['id']) diff --git a/project/templates/blocks/lil_store_js.html b/project/templates/blocks/lil_store_js.html index c67073a5..25600834 100644 --- a/project/templates/blocks/lil_store_js.html +++ b/project/templates/blocks/lil_store_js.html @@ -6,6 +6,7 @@ isMobile: {{ request.user_agent.is_mobile|yesno:"true,false" }}, user: { id: '{{ request.user.id|default:'' }}', - } + }, + components: {} }; diff --git a/project/templates/lilcity/edit_index.html b/project/templates/lilcity/edit_index.html index 18be67aa..70691489 100644 --- a/project/templates/lilcity/edit_index.html +++ b/project/templates/lilcity/edit_index.html @@ -316,12 +316,12 @@ {% include 'templates/blocks/lil_store_js.html' %} - {% block foot %}{% endblock foot %} + diff --git a/project/urls.py b/project/urls.py index 60a492c4..b844398b 100644 --- a/project/urls.py +++ b/project/urls.py @@ -55,6 +55,7 @@ urlpatterns = [ path('course//', CourseView.as_view(), name='course'), path('course//checkout', CourseBuyView.as_view(), name='course-checkout'), path('course//edit', CourseEditView.as_view(), name='course_edit'), + path('course//edit/lessons', CourseEditView.as_view(), name='course_edit_lessons'), path('course//lessons', CourseView.as_view(template_name='course/course_only_lessons.html', only_lessons=True), name='course-only-lessons'), path('course//like', likes, name='likes'), path('course//comment', coursecomment, name='coursecomment'), diff --git a/web/src/components/ContestRedactor.vue b/web/src/components/ContestRedactor.vue index 41820a66..a0cffc9d 100644 --- a/web/src/components/ContestRedactor.vue +++ b/web/src/components/ContestRedactor.vue @@ -66,45 +66,7 @@
- -
- - - - - -
-
- - +
@@ -113,15 +75,9 @@ diff --git a/web/src/components/CourseRedactor.vue b/web/src/components/CourseRedactor.vue index b3703785..0f5ae924 100644 --- a/web/src/components/CourseRedactor.vue +++ b/web/src/components/CourseRedactor.vue @@ -166,45 +166,7 @@
- -
- - - - - -
-
- - +