Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_Alipins
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
Angelico Ruiz T. Teaño
widget_Alipins
Commits
408687f5
Commit
408687f5
authored
May 21, 2022
by
Christian Sarabia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allowed date edit in forum post in admin
parent
a7bcd91c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
0 deletions
+1
-0
db.sqlite3
widget_alipins/db.sqlite3
+0
-0
models.py
widget_alipins/forum/models.py
+1
-0
No files found.
widget_alipins/db.sqlite3
View file @
408687f5
No preview for this file type
widget_alipins/forum/models.py
View file @
408687f5
...
@@ -6,6 +6,7 @@ class Post(models.Model):
...
@@ -6,6 +6,7 @@ class Post(models.Model):
post_title
=
models
.
CharField
(
max_length
=
50
)
post_title
=
models
.
CharField
(
max_length
=
50
)
post_body
=
models
.
TextField
(
max_length
=
1500
)
post_body
=
models
.
TextField
(
max_length
=
1500
)
pub_date
=
models
.
DateTimeField
(
"date published"
,
auto_now_add
=
True
)
pub_date
=
models
.
DateTimeField
(
"date published"
,
auto_now_add
=
True
)
pub_date
.
editable
=
True
author
=
models
.
ForeignKey
(
WidgetUser
,
on_delete
=
models
.
CASCADE
)
author
=
models
.
ForeignKey
(
WidgetUser
,
on_delete
=
models
.
CASCADE
)
post_image
=
models
.
ImageField
(
null
=
True
,
blank
=
True
,
upload_to
=
"forum/"
)
post_image
=
models
.
ImageField
(
null
=
True
,
blank
=
True
,
upload_to
=
"forum/"
)
...
...
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