Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_vincentdjango
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
1
Merge Requests
1
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
Almira Redoble
midterm_vincentdjango
Commits
b48ea72d
Commit
b48ea72d
authored
Mar 06, 2023
by
Andrew Justin C. Idquival
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed course to foreignkey
parent
55423141
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
models.py
widget_vincentdjango/widget_calendar/models.py
+6
-1
No files found.
widget_vincentdjango/widget_calendar/models.py
View file @
b48ea72d
from
django.db
import
models
from
widget_vincentdjango.assignments.models
import
Course
from
datetime
import
datetime
...
...
@@ -14,7 +15,11 @@ class Event(models.Model):
target_datetime
=
models
.
DateTimeField
(
default
=
datetime
.
now
())
activity
=
models
.
CharField
(
max_length
=
100
,
default
=
""
)
estimated_hours
=
models
.
FloatField
(
default
=
0
)
course
=
models
.
CharField
(
max_length
=
100
,
default
=
""
)
course
=
models
.
ForeignKey
(
Course
,
on_delete
=
models
.
CASCADE
,
related_name
=
'Section'
)
location
=
models
.
ForeignKey
(
Location
,
on_delete
=
models
.
CASCADE
,
...
...
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