Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group17
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vaughn Nephi Fajardo
widget_group17
Commits
08a18138
Commit
08a18138
authored
May 24, 2022
by
Joan Denise Nocos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tested assignment form by adding an assignment via the newassignment view
parent
11fb173d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
2 deletions
+2
-2
forms.cpython-39.pyc
widget_group_17/assignments/__pycache__/forms.cpython-39.pyc
+0
-0
views.cpython-39.pyc
widget_group_17/assignments/__pycache__/views.cpython-39.pyc
+0
-0
forms.py
widget_group_17/assignments/forms.py
+1
-1
views.py
widget_group_17/assignments/views.py
+1
-1
db.sqlite3
widget_group_17/db.sqlite3
+0
-0
No files found.
widget_group_17/assignments/__pycache__/forms.cpython-39.pyc
View file @
08a18138
No preview for this file type
widget_group_17/assignments/__pycache__/views.cpython-39.pyc
View file @
08a18138
No preview for this file type
widget_group_17/assignments/forms.py
View file @
08a18138
...
...
@@ -4,4 +4,4 @@ from .models import Assignment, Course
class
AssignmentForm
(
ModelForm
):
class
Meta
:
model
=
Assignment
fields
=
[
"name"
,
"description"
,
"max_points"
,
"course"
,
"image"
]
\ No newline at end of file
fields
=
[
"name"
,
"description"
,
"max_points"
,
"course"
]
\ No newline at end of file
widget_group_17/assignments/views.py
View file @
08a18138
from
django.http
import
HttpResponse
,
Http404
from
django.shortcuts
import
render
from
django.shortcuts
import
render
,
redirect
from
django.views
import
View
from
assignments.models
import
Assignment
,
Course
from
assignments.forms
import
AssignmentForm
...
...
widget_group_17/db.sqlite3
View file @
08a18138
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment