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
f1d660d2
Commit
f1d660d2
authored
Mar 30, 2022
by
Miguel Luis D. Bandelaria
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: resolved a bug that references WidgetUser to the models of the forum app
parent
a6c815ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
db.sqlite3
widget_group_17/db.sqlite3
+0
-0
models.py
widget_group_17/forum/models.py
+3
-2
No files found.
widget_group_17/db.sqlite3
View file @
f1d660d2
No preview for this file type
widget_group_17/forum/models.py
View file @
f1d660d2
from
django.db
import
models
from
django.db
import
models
from
homepage.models
import
WidgetUser
# Create your models here.
# Create your models here.
class
Post
(
models
.
Model
):
class
Post
(
models
.
Model
):
author
=
models
.
ForeignKey
(
'homepage.WidgetUser'
,
on_delete
=
models
.
CASCADE
)
author
=
models
.
ForeignKey
(
WidgetUser
,
on_delete
=
models
.
CASCADE
)
post_title
=
models
.
CharField
(
max_length
=
100
)
post_title
=
models
.
CharField
(
max_length
=
100
)
post_body
=
models
.
CharField
(
max_length
=
1000
)
post_body
=
models
.
CharField
(
max_length
=
1000
)
pub_date
=
models
.
DateTimeField
(
"Date published"
)
pub_date
=
models
.
DateTimeField
(
"Date published"
)
class
Reply
(
models
.
Model
):
class
Reply
(
models
.
Model
):
author
=
models
.
ForeignKey
(
'homepage.WidgetUser'
,
on_delete
=
models
.
CASCADE
)
author
=
models
.
ForeignKey
(
WidgetUser
,
on_delete
=
models
.
CASCADE
)
reply_body
=
models
.
CharField
(
max_length
=
1000
)
reply_body
=
models
.
CharField
(
max_length
=
1000
)
pub_date
=
models
.
DateTimeField
(
"Replied on"
)
pub_date
=
models
.
DateTimeField
(
"Replied on"
)
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