feat: multiple instructors

This commit is contained in:
Jannat Patel
2022-02-07 12:01:07 +05:30
parent 50c624e305
commit 3e46db9c11
6 changed files with 49 additions and 4 deletions

View File

@@ -0,0 +1,32 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2022-02-07 11:39:59.998762",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"instructor"
],
"fields": [
{
"fieldname": "instructor",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Instructor",
"options": "User"
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2022-02-07 11:41:42.943250",
"modified_by": "Administrator",
"module": "LMS",
"name": "Course Instructor",
"owner": "Administrator",
"permissions": [],
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2022, Frappe and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class CourseInstructor(Document):
pass

View File

@@ -105,11 +105,10 @@
},
{
"fieldname": "instructor",
"fieldtype": "Link",
"in_list_view": 1,
"fieldtype": "Table MultiSelect",
"in_standard_filter": 1,
"label": "Instructor",
"options": "User"
"options": "Course Instructor"
},
{
"fieldname": "section_break_7",
@@ -168,7 +167,7 @@
"link_fieldname": "course"
}
],
"modified": "2021-09-30 10:36:48.759995",
"modified": "2022-02-07 11:41:39.735324",
"modified_by": "Administrator",
"module": "LMS",
"name": "LMS Course",
@@ -190,6 +189,7 @@
"search_fields": "title",
"sort_field": "creation",
"sort_order": "DESC",
"states": [],
"title_field": "title",
"track_changes": 1
}

View File

@@ -21,3 +21,4 @@ execute:frappe.delete_doc("DocType", "LMS Topic") #06-10-2021
school.patches.v0_0.add_progress_to_membership #20-10-2021
execute:frappe.delete_doc("Workspace", "LMS", ignore_missing=True, force=True) #24-10-2021
execute:frappe.delete_doc("Custom Field", "User-verify_age", ignore_missing=True, force=True)
school.patches.v0_0.multiple_instructors

View File

@@ -0,0 +1,4 @@
import frappe
def execute():
frappe.get_all("LMS Course", fields=["name", "instructor"])