Commit 08a18138 authored by Joan Denise Nocos's avatar Joan Denise Nocos

tested assignment form by adding an assignment via the newassignment view

parent 11fb173d
...@@ -4,4 +4,4 @@ from .models import Assignment, Course ...@@ -4,4 +4,4 @@ from .models import Assignment, Course
class AssignmentForm(ModelForm): class AssignmentForm(ModelForm):
class Meta: class Meta:
model = Assignment model = Assignment
fields = ["name", "description", "max_points", "course", "image"] fields = ["name", "description", "max_points", "course"]
\ No newline at end of file \ No newline at end of file
from django.http import HttpResponse, Http404 from django.http import HttpResponse, Http404
from django.shortcuts import render from django.shortcuts import render, redirect
from django.views import View from django.views import View
from assignments.models import Assignment, Course from assignments.models import Assignment, Course
from assignments.forms import AssignmentForm from assignments.forms import AssignmentForm
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment