Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
midterm_OhMyBash
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
Nheo Samson
midterm_OhMyBash
Commits
f0cf7ba6
Commit
f0cf7ba6
authored
Mar 06, 2023
by
nheoxoz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated models
parent
8e18438a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
1 deletion
+23
-1
db.sqlite3
widget_OhMyBash/db.sqlite3
+0
-0
models.cpython-310.pyc
...MyBash/widget_calendar/__pycache__/models.cpython-310.pyc
+0
-0
views.cpython-310.pyc
...hMyBash/widget_calendar/__pycache__/views.cpython-310.pyc
+0
-0
0006_alter_event_course.py
...ash/widget_calendar/migrations/0006_alter_event_course.py
+18
-0
0005_alter_event_course_alter_location_mode.cpython-310.pyc
...05_alter_event_course_alter_location_mode.cpython-310.pyc
+0
-0
0006_alter_event_course.cpython-310.pyc
...tions/__pycache__/0006_alter_event_course.cpython-310.pyc
+0
-0
models.py
widget_OhMyBash/widget_calendar/models.py
+5
-1
No files found.
widget_OhMyBash/db.sqlite3
View file @
f0cf7ba6
No preview for this file type
widget_OhMyBash/widget_calendar/__pycache__/models.cpython-310.pyc
View file @
f0cf7ba6
No preview for this file type
widget_OhMyBash/widget_calendar/__pycache__/views.cpython-310.pyc
View file @
f0cf7ba6
No preview for this file type
widget_OhMyBash/widget_calendar/migrations/0006_alter_event_course.py
0 → 100644
View file @
f0cf7ba6
# Generated by Django 4.1.7 on 2023-03-06 03:00
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'widget_calendar'
,
'0005_alter_event_course_alter_location_mode'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'event'
,
name
=
'course'
,
field
=
models
.
CharField
(
max_length
=
100
),
),
]
widget_OhMyBash/widget_calendar/migrations/__pycache__/0005_alter_event_course_alter_location_mode.cpython-310.pyc
View file @
f0cf7ba6
No preview for this file type
widget_OhMyBash/widget_calendar/migrations/__pycache__/0006_alter_event_course.cpython-310.pyc
0 → 100644
View file @
f0cf7ba6
File added
widget_OhMyBash/widget_calendar/models.py
View file @
f0cf7ba6
...
@@ -24,7 +24,11 @@ class Event(models.Model):
...
@@ -24,7 +24,11 @@ class Event(models.Model):
activity
=
models
.
CharField
(
max_length
=
255
)
activity
=
models
.
CharField
(
max_length
=
255
)
estimated_hours
=
models
.
FloatField
()
estimated_hours
=
models
.
FloatField
()
location
=
models
.
ForeignKey
(
Location
,
on_delete
=
models
.
CASCADE
)
location
=
models
.
ForeignKey
(
Location
,
on_delete
=
models
.
CASCADE
)
course
=
models
.
CharField
(
max_length
=
100
)
course
=
course
=
models
.
ForeignKey
(
'assignments.Course'
,
on_delete
=
models
.
CASCADE
,
related_name
=
"event_course"
)
def
__str__
(
self
):
def
__str__
(
self
):
return
'{}, {}'
.
format
(
self
.
activity
,
self
.
target_datetime
)
return
'{}, {}'
.
format
(
self
.
activity
,
self
.
target_datetime
)
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