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
5daea689
Commit
5daea689
authored
Mar 30, 2022
by
Miguel Luis D. Bandelaria
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: resolved relationship with WidgetUser and the models in thee Forum app
parent
dc21a43d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
models.py
widget_group_17/forum/models.py
+2
-6
No files found.
widget_group_17/forum/models.py
View file @
5daea689
...
...
@@ -2,16 +2,12 @@ from django.db import models
# Create your models here.
class
Post
(
models
.
Model
):
author
=
models
.
ForeignKey
(
WidgetUser
,
on_delete
=
models
.
CASCADE
)
author
=
models
.
ForeignKey
(
'homepage.WidgetUser'
,
on_delete
=
models
.
CASCADE
)
post_title
=
models
.
CharField
(
max_length
=
100
)
post_body
=
models
.
CharField
(
max_length
=
1000
)
<<<<<<<
HEAD
pub_date
=
models
.
DateTimeField
(
"Date published"
)
=======
pub_date
=
models
.
DateTimeField
(
"Date published"
)
class
Reply
(
models
.
Model
):
author
=
models
.
ForeignKey
(
WidgetUser
,
on_delete
=
models
.
CASCADE
)
author
=
models
.
ForeignKey
(
'homepage.WidgetUser'
,
on_delete
=
models
.
CASCADE
)
reply_body
=
models
.
CharField
(
max_length
=
1000
)
pub_date
=
models
.
DateTimeField
(
"Replied on"
)
>>>>>>>
bandelaria
/
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