Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_aguandhischipmunks
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
Adrian Lance Damalerio
midterm_aguandhischipmunks
Commits
2922be19
Commit
2922be19
authored
May 15, 2023
by
Jan Ericsson Ong Ang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edited date and time format for templates
parent
cc9cd2d2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
2 deletions
+5
-2
models.cpython-310.pyc
...chipmunks/calendar_app/__pycache__/models.cpython-310.pyc
+0
-0
models.py
widget_aguandhischipmunks/calendar_app/models.py
+1
-1
event-details.html
...andhischipmunks/calendar_app/templates/event-details.html
+1
-1
settings.py
..._aguandhischipmunks/widget_aguandhischipmunks/settings.py
+3
-0
No files found.
widget_aguandhischipmunks/calendar_app/__pycache__/models.cpython-310.pyc
View file @
2922be19
No preview for this file type
widget_aguandhischipmunks/calendar_app/models.py
View file @
2922be19
...
...
@@ -20,7 +20,7 @@ class Location(models.Model):
# Event
# target_datetime; activity; estimated_hours; location; course
class
Event
(
models
.
Model
):
target_datetime
=
models
.
DateTimeField
(
"Date and Time: "
,
max_length
=
50
)
target_datetime
=
models
.
DateTimeField
(
"Date and Time: "
,
max_length
=
50
,
)
activity
=
models
.
CharField
(
"Activity: "
,
max_length
=
50
)
estimated_hours
=
models
.
FloatField
(
"Estimated Hours: "
,
max_length
=
50
)
location
=
models
.
ForeignKey
(
Location
,
on_delete
=
models
.
CASCADE
)
...
...
widget_aguandhischipmunks/calendar_app/templates/event-details.html
View file @
2922be19
...
...
@@ -7,7 +7,7 @@
<h1>
{{assignment.name}}
</h1>
<ul>
<p>
Date and Time: {{event.target_datetime}}
</p><br>
<p>
Date and Time: {{event.target_datetime
|date:'m/d/Y, 'h:i A''
}}
</p><br>
<p>
Estimated Hours: {{event.target_datetime}}
</p><br>
<p>
{{event.course}}
</p><br>
<p>
Mode: {{location.mode}}
</p><br>
...
...
widget_aguandhischipmunks/widget_aguandhischipmunks/settings.py
View file @
2922be19
...
...
@@ -119,6 +119,9 @@ USE_I18N = True
USE_TZ
=
True
USE_L10N
=
False
DATE_FORMAT
=
"
%
m/
%
d/
%
Y"
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.1/howto/static-files/
...
...
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