@@ -9,6 +9,27 @@ from registration.models import CourseInfo, CourseRegisterFieldInfo, CourseRegis |
||
| 9 | 9 |
|
| 10 | 10 |
|
| 11 | 11 |
def add_course(request): |
| 12 |
+ # {
|
|
| 13 |
+ # "course_name": "", |
|
| 14 |
+ # "authorities": [{
|
|
| 15 |
+ # "admin_id": "", |
|
| 16 |
+ # "campus_id": "", |
|
| 17 |
+ # "campus_name": "", |
|
| 18 |
+ # "name": "", |
|
| 19 |
+ # "phone": "", |
|
| 20 |
+ # "user_status": "", |
|
| 21 |
+ # }], |
|
| 22 |
+ # "fields": [{
|
|
| 23 |
+ # "field_id": "", # 有值更新,没值新建 |
|
| 24 |
+ # "fields": [ |
|
| 25 |
+ # {
|
|
| 26 |
+ # "type": "input", # input, select, file |
|
| 27 |
+ # "name": "", |
|
| 28 |
+ # "options": ["男", "女"], # type=select |
|
| 29 |
+ # } |
|
| 30 |
+ # ] |
|
| 31 |
+ # }] |
|
| 32 |
+ # } |
|
| 12 | 33 |
course_name = request.POST.get('course_name', '')
|
| 13 | 34 |
authorities = request.POST.get('authorities', [])
|
| 14 | 35 |
all_fields = request.POST.get('fields', [])
|