Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_placeholdername
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
Rajo Christian Cadorna
widget_placeholdername
Commits
139fb9f7
Commit
139fb9f7
authored
Apr 04, 2022
by
Justin Daniel Mendoza
Browse files
Options
Browse Files
Download
Plain Diff
Updated views.py and models.py for homepage
parents
44b68c5a
8b18c0ae
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
0002_alter_announcement_announcement_body.py
...s/migrations/0002_alter_announcement_announcement_body.py
+18
-0
0002_alter_announcement_announcement_body.cpython-310.pyc
...0002_alter_announcement_announcement_body.cpython-310.pyc
+0
-0
models.py
announcements/models.py
+1
-1
No files found.
announcements/migrations/0002_alter_announcement_announcement_body.py
0 → 100644
View file @
139fb9f7
# Generated by Django 3.2.12 on 2022-03-23 10:57
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'announcements'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'announcement'
,
name
=
'announcement_body'
,
field
=
models
.
CharField
(
max_length
=
400
),
),
]
announcements/migrations/__pycache__/0002_alter_announcement_announcement_body.cpython-310.pyc
0 → 100644
View file @
139fb9f7
File added
announcements/models.py
View file @
139fb9f7
...
@@ -3,5 +3,5 @@ from django.db import models
...
@@ -3,5 +3,5 @@ from django.db import models
# Create your models here.
# Create your models here.
class
Announcement
(
models
.
Model
):
class
Announcement
(
models
.
Model
):
announcement_title
=
models
.
CharField
(
max_length
=
50
)
announcement_title
=
models
.
CharField
(
max_length
=
50
)
announcement_body
=
models
.
CharField
(
max_length
=
5
00
)
announcement_body
=
models
.
CharField
(
max_length
=
4
00
)
pub_date
=
models
.
DateTimeField
(
"date published"
)
pub_date
=
models
.
DateTimeField
(
"date published"
)
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