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
8e18438a
Commit
8e18438a
authored
Mar 06, 2023
by
nheoxoz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'staging' to 'main' with references
parents
8f02ef99
219dee4b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
5 deletions
+49
-5
README.txt
README.txt
+23
-0
0005_alter_event_course_alter_location_mode.py
...migrations/0005_alter_event_course_alter_location_mode.py
+25
-0
0005_alter_event_course_alter_location_mode.cpython-310.pyc
...05_alter_event_course_alter_location_mode.cpython-310.pyc
+0
-0
models.py
widget_OhMyBash/widget_calendar/models.py
+1
-5
No files found.
README.txt
View file @
8e18438a
...
@@ -19,6 +19,29 @@ The group, OhMyOhMyBash, promises that this project was made by them.
...
@@ -19,6 +19,29 @@ The group, OhMyOhMyBash, promises that this project was made by them.
References:
References:
Dashboard:
https://www.computerhope.com/issues/ch001704.htm#:~:text=Adding%20the%20%22list%2Dstyle%3A,removes%20any%20bullet%20or%20number.
https://www.w3schools.com/howto/howto_css_list_without_bullets.asp
https://blog.hubspot.com/website/html-line-break#:~:text=To%20do%20a%20line%20break%20in%20HTML%2C%20use%20the%20%3Cbr,%3E%20and%20element.
Announcements:
https://www.youtube.com/watch?v=cWq6jQGWmEg&ab_channel=VeryAcademy
https://www.codingninjas.com/codestudio/library/django-model-data-types-and-fields-list
https://automatetheboringstuff.com/chapter6/#:~:text=A%20multiline%20string%20in%20Python,lines%20inside%20a%20multiline%20string.
https://www.w3schools.com/tags/tag_br.asp
Forum:
https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/changing-a-commit-message
https://betterprogramming.pub/how-to-use-pass-break-and-continue-in-python-6e0201fc032a
https://www.delftstack.com/howto/django/django-reset-database/
Calendar:
https://pythonguides.com/django-round-to-two-decimal-places/
https://www.geeksforgeeks.org/datetimefield-django-models/
(sgd) Elaiza R. Bolislis, 3/6/2023
(sgd) Elaiza R. Bolislis, 3/6/2023
(sgd) Alliyah Ericka Therese E. Marcelo, 3/6/2023
(sgd) Alliyah Ericka Therese E. Marcelo, 3/6/2023
...
...
widget_OhMyBash/widget_calendar/migrations/0005_alter_event_course_alter_location_mode.py
0 → 100644
View file @
8e18438a
# Generated by Django 4.1.7 on 2023-03-06 01:57
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'assignments'
,
'0001_initial'
),
(
'widget_calendar'
,
'0004_alter_event_location'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'event'
,
name
=
'course'
,
field
=
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'event_course'
,
to
=
'assignments.course'
),
),
migrations
.
AlterField
(
model_name
=
'location'
,
name
=
'mode'
,
field
=
models
.
CharField
(
choices
=
[(
'onsite'
,
'onsite'
),
(
'online'
,
'online'
),
(
'hybrid'
,
'hybrid'
)],
default
=
'onsite'
,
max_length
=
6
),
),
]
widget_OhMyBash/widget_calendar/migrations/__pycache__/0005_alter_event_course_alter_location_mode.cpython-310.pyc
0 → 100644
View file @
8e18438a
File added
widget_OhMyBash/widget_calendar/models.py
View file @
8e18438a
...
@@ -24,11 +24,7 @@ class Event(models.Model):
...
@@ -24,11 +24,7 @@ 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
=
course
=
models
.
ForeignKey
(
course
=
models
.
CharField
(
max_length
=
100
)
'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