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
36bcbc93
Commit
36bcbc93
authored
Apr 04, 2022
by
Christian Sarabia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix migrations and forum data
parent
538be088
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
0 deletions
+61
-0
0004_auto_20220403_1509.py
...ipins/announcements/migrations/0004_auto_20220403_1509.py
+25
-0
0002_auto_20220403_1526.py
widget_alipins/forum/migrations/0002_auto_20220403_1526.py
+36
-0
No files found.
widget_alipins/announcements/migrations/0004_auto_20220403_1509.py
0 → 100644
View file @
36bcbc93
# Generated by Django 3.2.12 on 2022-04-03 07:09
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'homepage'
,
'0005_alter_widgetuser_id_num'
),
(
'announcements'
,
'0003_merge_20220403_1047'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'announcement'
,
name
=
'author'
,
field
=
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'homepage.widgetuser'
),
),
migrations
.
AlterField
(
model_name
=
'reaction'
,
name
=
'reaction_name'
,
field
=
models
.
CharField
(
choices
=
[(
'Like'
,
'Like'
),
(
'Love'
,
'Love'
),
(
'Angry'
,
'Angry'
)],
default
=
'Like'
,
max_length
=
5
),
),
]
widget_alipins/forum/migrations/0002_auto_20220403_1526.py
0 → 100644
View file @
36bcbc93
# Generated by Django 3.2.12 on 2022-04-03 07:26
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'homepage'
,
'0005_alter_widgetuser_id_num'
),
(
'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'
),
preserve_default
=
False
,
),
migrations
.
AlterField
(
model_name
=
'post'
,
name
=
'post_body'
,
field
=
models
.
TextField
(
max_length
=
1500
),
),
migrations
.
CreateModel
(
name
=
'Reply'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'reply_body'
,
models
.
TextField
(
max_length
=
1500
)),
(
'pub_date'
,
models
.
DateTimeField
(
verbose_name
=
'date published'
)),
(
'author'
,
models
.
ForeignKey
(
default
=
1
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'homepage.widgetuser'
)),
(
'post'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'forum.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