Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widgets_FEKK
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
Kyla Martin
widgets_FEKK
Commits
11f28fcb
Commit
11f28fcb
authored
May 16, 2022
by
Katrina Bernice Tan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Assignment Templates
parent
b42f2948
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
assignments.html
WidgetFEKK/Assignments/templates/assignments.html
+0
-0
urls.py
WidgetFEKK/Assignments/urls.py
+2
-2
views.py
WidgetFEKK/Assignments/views.py
+2
-2
No files found.
WidgetFEKK/Assignments/templates/
index
.html
→
WidgetFEKK/Assignments/templates/
assignments
.html
View file @
11f28fcb
File moved
WidgetFEKK/Assignments/urls.py
View file @
11f28fcb
...
@@ -3,8 +3,8 @@ from . import views
...
@@ -3,8 +3,8 @@ from . import views
from
.views
import
MainView
,
AssignmentListView
,
AssignmentDetailView
from
.views
import
MainView
,
AssignmentListView
,
AssignmentDetailView
urlpatterns
=
[
urlpatterns
=
[
path
(
''
,
MainView
.
as_view
(),
name
=
'
index
'
),
path
(
''
,
MainView
.
as_view
(),
name
=
'
assignments
'
),
path
(
'assignment'
,
AssignmentListView
.
as_view
(),
name
=
'assignment-list'
),
path
(
'assignment
s
'
,
AssignmentListView
.
as_view
(),
name
=
'assignment-list'
),
path
(
'assignment/<int:pk>/details'
,
AssignmentDetailView
.
as_view
(),
name
=
'assignment-detail'
),
path
(
'assignment/<int:pk>/details'
,
AssignmentDetailView
.
as_view
(),
name
=
'assignment-detail'
),
]
]
...
...
WidgetFEKK/Assignments/views.py
View file @
11f28fcb
...
@@ -10,9 +10,9 @@ class MainView(View):
...
@@ -10,9 +10,9 @@ class MainView(View):
def
get
(
self
,
request
):
def
get
(
self
,
request
):
course
=
Course
.
objects
.
all
()
.
order_by
(
'course_code'
)
course
=
Course
.
objects
.
all
()
.
order_by
(
'course_code'
)
assignment
=
Assignment
.
objects
.
all
()
.
order_by
(
'course'
)
assignment
=
Assignment
.
objects
.
all
()
.
order_by
(
'course'
)
return
render
(
request
,
'
index
.html'
,{
return
render
(
request
,
'
assignments
.html'
,{
'course'
:
course
,
'course'
:
course
,
'assignment'
:
assignment
,
'assignment
s
'
:
assignment
,
})
})
class
AssignmentListView
(
ListView
):
class
AssignmentListView
(
ListView
):
...
...
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