Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_princessgabi
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
Ysabella Panghulan
midterm_princessgabi
Commits
75f0f593
Commit
75f0f593
authored
Mar 04, 2023
by
Ysabella Panghulan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added Event and Location models in calendar app
parent
907cf36e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
0 deletions
+22
-0
db.sqlite3
widget_princessgabi/db.sqlite3
+0
-0
models.py
widget_princessgabi/widget_calendar/models.py
+22
-0
urls.cpython-310.pyc
...gabi/widget_princessgabi/__pycache__/urls.cpython-310.pyc
+0
-0
wsgi.cpython-310.pyc
...gabi/widget_princessgabi/__pycache__/wsgi.cpython-310.pyc
+0
-0
No files found.
widget_princessgabi/db.sqlite3
0 → 100644
View file @
75f0f593
widget_princessgabi/widget_calendar/models.py
View file @
75f0f593
from
django.db
import
models
# Create your models here.
class
Location
(
models
.
Model
):
LOCATION_CHOICES
=
(
(
'onsite'
,
'Onsite'
),
(
'online'
,
'Online'
),
(
'hybrid'
,
'Hybrid'
),
)
mode
=
models
.
CharField
(
max_length
=
10
,
choices
=
LOCATION_CHOICES
)
venue
=
models
.
TextField
(
null
=
True
,
blank
=
True
)
def
__str__
(
self
):
return
self
.
venue
class
Event
(
models
.
Model
):
target_datetime
=
models
.
DateTimeField
(
'target date'
)
activity
=
models
.
TextField
()
estimated_hours
=
models
.
FloatField
()
location
=
models
.
ForeignKey
(
Location
,
on_delete
=
models
.
CASCADE
)
course
=
models
.
ForeignKey
(
Course
,
on_delete
=
models
.
CASCADE
)
def
__str__
(
self
):
return
self
.
activity
\ No newline at end of file
widget_princessgabi/widget_princessgabi/__pycache__/urls.cpython-310.pyc
0 → 100644
View file @
75f0f593
File added
widget_princessgabi/widget_princessgabi/__pycache__/wsgi.cpython-310.pyc
0 → 100644
View file @
75f0f593
File added
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