-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #381 from sparcs-kaist/develop
Disable FCM & Update article admin page
- Loading branch information
Showing
9 changed files
with
143 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generated by Django 3.2.16 on 2023-03-29 20:08 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("core", "0043_board_comment_access_mask"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="article", | ||
name="url", | ||
field=models.URLField( | ||
blank=True, default=None, null=True, verbose_name="포탈 링크" | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Generated by Django 3.2.16 on 2023-03-30 22:56 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("core", "0044_alter_article_url"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="article", | ||
name="hidden_at", | ||
field=models.DateTimeField( | ||
blank=True, default=None, null=True, verbose_name="숨김 시간" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="comment", | ||
name="hidden_at", | ||
field=models.DateTimeField( | ||
blank=True, default=None, null=True, verbose_name="숨김 시간" | ||
), | ||
), | ||
] |
24 changes: 24 additions & 0 deletions
24
apps/core/migrations/0046_update_hidden_at_min_time_to_null.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Generated by yuwol | ||
|
||
from django.db import migrations | ||
|
||
from ara.settings import MIN_TIME | ||
|
||
|
||
def update_hidden_at(apps, schema_editor): | ||
Article = apps.get_model("core", "Article") | ||
Article.objects.filter(hidden_at=MIN_TIME).update(hidden_at=None) | ||
|
||
Comment = apps.get_model("core", "Comment") | ||
Comment.objects.filter(hidden_at=MIN_TIME).update(hidden_at=None) | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("core", "0045_alter_hidden_at_to_nullable"), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(update_hidden_at, atomic=True), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters