Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_jupert
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
Joseph Izon
widget_jupert
Commits
4af4f941
Commit
4af4f941
authored
Apr 07, 2022
by
Ronan Phillippe B. Artuz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created migrations for Post and Reply models. Renamed post_title field to post in Reply model.
parent
9ec90070
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
0 deletions
+66
-0
db.sqlite3
widget_jupert/db.sqlite3
+0
-0
0002_auto_20220407_1035.py
widget_jupert/forum/migrations/0002_auto_20220407_1035.py
+29
-0
0003_reply_post_title.py
widget_jupert/forum/migrations/0003_reply_post_title.py
+19
-0
0004_rename_post_title_reply_post.py
...ert/forum/migrations/0004_rename_post_title_reply_post.py
+18
-0
No files found.
widget_jupert/db.sqlite3
View file @
4af4f941
No preview for this file type
widget_jupert/forum/migrations/0002_auto_20220407_1035.py
0 → 100644
View file @
4af4f941
# Generated by Django 3.2.12 on 2022-04-07 02:35
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'homepage'
,
'0001_initial'
),
(
'forum'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'post'
,
name
=
'author'
,
field
=
models
.
ForeignKey
(
default
=
1
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'homepage.widgetuser'
),
),
migrations
.
CreateModel
(
name
=
'Reply'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'reply_body'
,
models
.
CharField
(
max_length
=
250
)),
(
'pub_date'
,
models
.
DateTimeField
(
verbose_name
=
'date published'
)),
(
'author'
,
models
.
ForeignKey
(
default
=
1
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'homepage.widgetuser'
)),
],
),
]
widget_jupert/forum/migrations/0003_reply_post_title.py
0 → 100644
View file @
4af4f941
# Generated by Django 3.2.12 on 2022-04-07 02:48
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'forum'
,
'0002_auto_20220407_1035'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'reply'
,
name
=
'post_title'
,
field
=
models
.
ForeignKey
(
default
=
1
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'forum.post'
),
),
]
widget_jupert/forum/migrations/0004_rename_post_title_reply_post.py
0 → 100644
View file @
4af4f941
# Generated by Django 3.2.12 on 2022-04-07 05:49
from
django.db
import
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'forum'
,
'0003_reply_post_title'
),
]
operations
=
[
migrations
.
RenameField
(
model_name
=
'reply'
,
old_name
=
'post_title'
,
new_name
=
'post'
,
),
]
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