Skip to content
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

Update views.py #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
20 changes: 7 additions & 13 deletions material/views.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
from django.shortcuts import render
from django.contrib.auth.models import User
from django.http import HttpResponseRedirect
from django.http import HttpResponse
from django.http import Http404
from django.http import HttpResponseRedirect,HttpResponse,Http404

from django.core.urlresolvers import reverse

from course.models import Course
from course.models import Instructor
from course.models import Student
from course.models import Course,Instructor,Student

from course.utils import check_is_student,check_is_instructor,check_is_creator

from course.utils import check_is_student
from course.utils import check_is_instructor
from course.utils import check_is_creator
from material.models import Topic,Material

from material.models import Topic
from material.models import Material
from material.forms import TopicForm,MaterialForm

from material.forms import TopicForm
from material.forms import MaterialForm


from course_management import settings
Expand Down