Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group17
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
Vaughn Nephi Fajardo
widget_group17
Commits
d4cc5c6c
Commit
d4cc5c6c
authored
May 17, 2022
by
Neal Berones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added field image to Announcement model
parent
4d610360
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
0 deletions
+19
-0
models.cpython-310.pyc
...group_17/announcements/__pycache__/models.cpython-310.pyc
+0
-0
0003_announcement_image.py
...up_17/announcements/migrations/0003_announcement_image.py
+18
-0
0003_announcement_image.cpython-310.pyc
...tions/__pycache__/0003_announcement_image.cpython-310.pyc
+0
-0
models.py
widget_group_17/announcements/models.py
+1
-0
db.sqlite3
widget_group_17/db.sqlite3
+0
-0
No files found.
widget_group_17/announcements/__pycache__/models.cpython-310.pyc
View file @
d4cc5c6c
No preview for this file type
widget_group_17/announcements/migrations/0003_announcement_image.py
0 → 100644
View file @
d4cc5c6c
# Generated by Django 4.0.3 on 2022-05-17 15:20
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'announcements'
,
'0002_announcement_author_reaction'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'announcement'
,
name
=
'image'
,
field
=
models
.
FileField
(
null
=
True
,
upload_to
=
'static/'
),
),
]
widget_group_17/announcements/migrations/__pycache__/0003_announcement_image.cpython-310.pyc
0 → 100644
View file @
d4cc5c6c
File added
widget_group_17/announcements/models.py
View file @
d4cc5c6c
...
...
@@ -11,6 +11,7 @@ class Announcement(models.Model):
announcement_title
=
models
.
CharField
(
max_length
=
50
)
announcement_body
=
models
.
CharField
(
max_length
=
500
)
pub_date
=
models
.
DateTimeField
(
"date published"
)
image
=
models
.
FileField
(
upload_to
=
'static/'
,
null
=
True
)
def
__str__
(
self
):
return
self
.
announcement_title
...
...
widget_group_17/db.sqlite3
View file @
d4cc5c6c
No preview for this file type
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