diff --git a/material/views.py b/material/views.py index bf7fe0f..793c9db 100644 --- a/material/views.py +++ b/material/views.py @@ -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