Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions FusionIIIT/applications/academic_information/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def user_check(request):
return False


@login_required(login_url='/accounts/login')
def get_context(request):
"""
This function gets basic gata from database to send to template
Expand Down Expand Up @@ -842,6 +843,7 @@ def update_calendar(request):


#Generate Attendance Sheet
@login_required(login_url='/accounts/login')
def sem_for_generate_sheet():
"""
This function generates semester grade sheet
Expand Down Expand Up @@ -1424,6 +1426,7 @@ def add_new_profile (request):
return render(request, "ais/ais.html", context)


@login_required(login_url='/accounts/login')
def get_faculty_list():
"""
to get faculty list from database
Expand Down Expand Up @@ -1580,6 +1583,7 @@ def float_course_submit(request):

# # ---------------------senator------------------
# @csrf_exempt
@login_required(login_url='/accounts/login')
def senator(request):
# """
# to add a new student senator
Expand Down Expand Up @@ -1635,6 +1639,7 @@ def senator(request):
# return HttpResponseRedirect('/aims/')

# @csrf_exempt
@login_required(login_url='/accounts/login')
def deleteSenator(request, pk):
# """
# to remove a senator from the position
Expand Down Expand Up @@ -1662,6 +1667,7 @@ def deleteSenator(request, pk):

# # ##########covenors and coconvenors##################
# @csrf_exempt
@login_required(login_url='/accounts/login')
def add_convenor(request):
# """
# to add a new student convenor/coconvenor
Expand Down Expand Up @@ -1709,6 +1715,7 @@ def add_convenor(request):
# return JsonResponse(data)

# @csrf_exempt
@login_required(login_url='/accounts/login')
def deleteConvenor(request, pk):
# """
# to remove a convenor/coconvenor from the position
Expand Down Expand Up @@ -1744,6 +1751,7 @@ def deleteConvenor(request, pk):

# # ##########Senate meeting Minute##################
# @csrf_exempt
@login_required(login_url='/accounts/login')
def addMinute(request):
# """
# to add a new senate meeting minute object to the database.
Expand Down Expand Up @@ -1780,6 +1788,7 @@ def addMinute(request):
# return render(request, "ais/ais.html", {})


@login_required(login_url='/accounts/login')
def deleteMinute(request):
# """
# to delete an existing senate meeting minute object from the database.
Expand All @@ -1803,6 +1812,7 @@ def deleteMinute(request):

# # ##########Student basic profile##################
# @csrf_exempt
@login_required(login_url='/accounts/login')
def add_basic_profile(request):
# """
# It adds the basic profile information like username,password, name,
Expand Down Expand Up @@ -1853,6 +1863,7 @@ def add_basic_profile(request):


# @csrf_exempt
@login_required(login_url='/accounts/login')
def delete_basic_profile(request, pk):
# """
# Deletes the student from the database
Expand Down Expand Up @@ -1884,6 +1895,7 @@ def delete_basic_profile(request, pk):

# '''

@login_required(login_url='/accounts/login')
def delete_advanced_profile(request):
# """
# to delete the advance information of the student
Expand Down Expand Up @@ -1929,6 +1941,7 @@ def delete_advanced_profile(request):
# return HttpResponse("Data Deleted Successfully")


@login_required(login_url='/accounts/login')
def add_advanced_profile(request):
# """
# It adds the advance profile information like hall no, room no,
Expand Down Expand Up @@ -1994,6 +2007,7 @@ def add_advanced_profile(request):



@login_required(login_url='/accounts/login')
def add_optional(request):
# """
# acadmic admin to update the additional courses
Expand Down Expand Up @@ -2021,6 +2035,7 @@ def add_optional(request):
# return HttpResponseRedirect('/academic-procedures/')


@login_required(login_url='/accounts/login')
def min_cred(request):
# """
# to set minimum credit for a current semester that a student must take
Expand All @@ -2046,6 +2061,7 @@ def min_cred(request):
# return HttpResponse("Worked")


@login_required(login_url='/accounts/login')
def view_course(request):
# if request.method == "POST":
# programme=request.POST['programme']
Expand All @@ -2069,6 +2085,7 @@ def view_course(request):



@login_required(login_url='/accounts/login')
def delete_grade(request):
# """
# It deletes the grade of the student
Expand Down Expand Up @@ -2155,6 +2172,7 @@ def verify_grade(request):
return HttpResponseRedirect('/aims/')


@login_required(login_url='/accounts/login')
def confirm_grades(request):
# if user_check(request):
# return HttpResponseRedirect('/academic-procedures/')
Expand Down
Loading
Loading