Skip to content

TWO MODULES ADDED FOR BOOKS #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
12 changes: 12 additions & 0 deletions django_school/classroom/templates/classroom/Books/icse.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ICSE Books</title>
</head>
<body>

</body>
</html>
12 changes: 12 additions & 0 deletions django_school/classroom/templates/classroom/Books/ncert.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NCERT Books</title>
</head>
<body>

</body>
</html>
4 changes: 3 additions & 1 deletion django_school/classroom/views/teachers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from ..decorators import teacher_required
from ..forms import BaseAnswerInlineFormSet, QuestionForm, TeacherSignUpForm
from ..models import Answer, Question, Quiz, User
from ..models import Question


class TeacherSignUpView(CreateView):
Expand Down Expand Up @@ -206,7 +207,8 @@ def delete(self, request, *args, **kwargs):
return super().delete(request, *args, **kwargs)

def get_queryset(self):
return Question.objects.filter(quiz__owner=self.request.user)
teacher=Question.objects.filter(quiz__owner=self.request.user)
return

def get_success_url(self):
question = self.get_object()
Expand Down