Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_gitgud
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
Neal Luigi D. Rodriguez
midterm_gitgud
Commits
6c533cdf
Commit
6c533cdf
authored
May 12, 2023
by
Neal Luigi D. Rodriguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Assignments page has been created
parent
44c08a4d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
2 deletions
+2
-2
models.cpython-311.pyc
widget_gitgud/Assignments/__pycache__/models.cpython-311.pyc
+0
-0
urls.cpython-311.pyc
widget_gitgud/Assignments/__pycache__/urls.cpython-311.pyc
+0
-0
models.py
widget_gitgud/Assignments/models.py
+1
-1
urls.py
widget_gitgud/Assignments/urls.py
+1
-1
No files found.
widget_gitgud/Assignments/__pycache__/models.cpython-311.pyc
View file @
6c533cdf
No preview for this file type
widget_gitgud/Assignments/__pycache__/urls.cpython-311.pyc
View file @
6c533cdf
No preview for this file type
widget_gitgud/Assignments/models.py
View file @
6c533cdf
...
...
@@ -20,7 +20,7 @@ class Assignment(models.Model):
perfect_score
=
models
.
IntegerField
()
def
get_absolute_url
(
self
):
return
reverse
(
'Assignments:assignment
s
-details'
,
kwargs
=
{
'pk'
:
self
.
pk
})
return
reverse
(
'Assignments:assignment-details'
,
kwargs
=
{
'pk'
:
self
.
pk
})
@
property
def
passing_score
(
self
):
...
...
widget_gitgud/Assignments/urls.py
View file @
6c533cdf
...
...
@@ -5,7 +5,7 @@ from .views import (AssignmentView,
urlpatterns
=
[
path
(
'assignment/'
,
AssignmentView
,
name
=
"index"
),
path
(
'<pk>/details/'
,
AssignmentsDetailView
.
as_view
(),
name
=
'assignment-detail'
)
path
(
'<pk>/details/'
,
AssignmentsDetailView
.
as_view
(),
name
=
'assignment-detail
s
'
)
]
app_name
=
"Assignments"
\ No newline at end of file
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