FusionIIIT/applications/hostel_management/views.py
def delete_notice(request):
    """
    This function is responsible for deleting ana existing notice from the notice board.
    @param:
      request - HttpRequest object containing metadata about the user request.

    @variables:
      notice_id - stores id of the notice.
      notice - stores HostelNoticeBoard object related to 'notice_id'
    """
    if request.method == 'POST':
        notice_id=request.POST["dlt_notice"]
        notice=HostelNoticeBoard.objects.get(pk=notice_id)
        notice.delete()
    return HttpResponseRedirect(reverse("hostelmanagement:hostel_view"))

    This function is responsible for deleting ana existing notice from the notice board.
    @param:
      request - HttpRequest object containing metadata about the user request.

    @variables:
      notice_id - stores id of the notice.
      notice - stores HostelNoticeBoard object related to 'notice_id'
    
This function is responsible for deleting ana existing notice from the notice board.
@param:
request - HttpRequest object containing metadata about the user request.

@variables:
notice_id - stores id of the notice.
notice - stores HostelNoticeBoard object related to 'notice_id'
This function is responsible for deleting ana existing notice from the notice board . @param : request - HttpRequest object containing metadata about the user request . @variables : notice_id - stores id of the notice . notice - stores HostelNoticeBoard object related to ' notice_id '
def delete_notice(request):
    if request.method == 'POST':
        notice_id=request.POST["dlt_notice"]
        notice=HostelNoticeBoard.objects.get(pk=notice_id)
        notice.delete()
    return HttpResponseRedirect(reverse("hostelmanagement:hostel_view"))
def delete_notice ( request ) : if request . method == 'POST' : notice_id = request . POST [ "dlt_notice" ] notice = HostelNoticeBoard . objects . get ( pk = notice_id ) notice . delete ( ) return HttpResponseRedirect ( reverse ( "hostelmanagement:hostel_view" ) )
This function is responsible for deleting ana existing notice from the notice board.
This function is responsible for deleting ana existing notice from the notice board .
"""
    This function is responsible for deleting ana existing notice from the notice board.
    @param:
      request - HttpRequest object containing metadata about the user request.

    @variables:
      notice_id - stores id of the notice.
      notice - stores HostelNoticeBoard object related to 'notice_id'
    """
request