Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_jenicaesports
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
Christianneil Emmanuel Ocampo
midterm_jenicaesports
Commits
9db18060
Commit
9db18060
authored
Mar 06, 2023
by
Christianneil Emmanuel Ocampo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bugs models in calendar app
parent
b6d19d85
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
1 deletion
+2
-1
models.cpython-39.pyc
...esports/widget_calendar/__pycache__/models.cpython-39.pyc
+0
-0
views.cpython-39.pyc
...aesports/widget_calendar/__pycache__/views.cpython-39.pyc
+0
-0
models.py
widget_jenicaesports/widget_calendar/models.py
+2
-1
No files found.
widget_jenicaesports/widget_calendar/__pycache__/models.cpython-39.pyc
View file @
9db18060
No preview for this file type
widget_jenicaesports/widget_calendar/__pycache__/views.cpython-39.pyc
View file @
9db18060
No preview for this file type
widget_jenicaesports/widget_calendar/models.py
View file @
9db18060
from
django.db
import
models
from
django.utils.translation
import
gettext_lazy
as
_
from
assignments
import
models
as
assignments_models
class
Location
(
models
.
Model
):
...
...
@@ -23,7 +24,7 @@ class Event(models.Model):
activity
=
models
.
TextField
(
default
=
''
)
estimated_hours
=
models
.
FloatField
(
default
=
''
)
location
=
models
.
ForeignKey
(
Location
,
on_delete
=
models
.
CASCADE
)
course
=
models
.
CharField
(
max_length
=
255
,
default
=
''
)
course
=
models
.
ForeignKey
(
assignments_models
.
Course
,
on_delete
=
models
.
CASCADE
)
def
__str__
(
self
):
return
'{} on {} at {}'
.
format
(
...
...
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