Rewrite aimport_json()
This commit is contained in:
.vscode
core
management
commands
migrations
0001_initial.py0002_rename_id_dropcampaign_twitch_id.py0003_rename_sub_goal_rewardcampaign_subs_goal.py0004_alter_dropcampaign_name_alter_game_box_art_url_and_more.py0005_alter_benefit_options_alter_dropcampaign_options_and_more.py0006_benefit_image_dropcampaign_image_game_image_and_more.py0007_alter_game_options_alter_owner_options_and_more.py
models.pysettings.pytemplates
@ -1,11 +1,16 @@
|
||||
# Generated by Django 5.1 on 2024-09-01 22:36
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
import django.contrib.auth.models
|
||||
import django.contrib.auth.validators
|
||||
import django.db.models.deletion
|
||||
import django.utils.timezone
|
||||
from django.db import migrations, models
|
||||
from django.db.migrations.operations.base import Operation
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from django.db.migrations.operations.base import Operation
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
@ -1,7 +1,12 @@
|
||||
# Generated by Django 5.1 on 2024-09-02 23:28
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from django.db import migrations
|
||||
from django.db.migrations.operations.base import Operation
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from django.db.migrations.operations.base import Operation
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
@ -1,7 +1,12 @@
|
||||
# Generated by Django 5.1 on 2024-09-07 19:19
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from django.db import migrations
|
||||
from django.db.migrations.operations.base import Operation
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from django.db.migrations.operations.base import Operation
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
@ -1,7 +1,12 @@
|
||||
# Generated by Django 5.1 on 2024-09-09 02:34
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from django.db import migrations, models
|
||||
from django.db.migrations.operations.base import Operation
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from django.db.migrations.operations.base import Operation
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
@ -0,0 +1,38 @@
|
||||
# Generated by Django 5.1 on 2024-09-15 19:40
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from django.db.migrations.operations.base import Operation
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies: list[tuple[str, str]] = [
|
||||
("core", "0004_alter_dropcampaign_name_alter_game_box_art_url_and_more"),
|
||||
]
|
||||
|
||||
operations: list[Operation] = [
|
||||
migrations.AlterModelOptions(
|
||||
name="benefit",
|
||||
options={"ordering": ["-twitch_created_at"]},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name="dropcampaign",
|
||||
options={"ordering": ["ends_at"]},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name="reward",
|
||||
options={"ordering": ["-earnable_until"]},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name="rewardcampaign",
|
||||
options={"ordering": ["-starts_at"]},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name="timebaseddrop",
|
||||
options={"ordering": ["required_minutes_watched"]},
|
||||
),
|
||||
]
|
@ -0,0 +1,50 @@
|
||||
# Generated by Django 5.1.1 on 2024-09-16 19:32
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
import core.models
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from django.db.migrations.operations.base import Operation
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies: list[tuple[str, str]] = [
|
||||
("core", "0005_alter_benefit_options_alter_dropcampaign_options_and_more"),
|
||||
]
|
||||
|
||||
operations: list[Operation] = [
|
||||
migrations.AddField(
|
||||
model_name="benefit",
|
||||
name="image",
|
||||
field=models.ImageField(null=True, upload_to=core.models.get_benefit_image_path),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="dropcampaign",
|
||||
name="image",
|
||||
field=models.ImageField(null=True, upload_to=core.models.get_drop_campaign_image_path),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="game",
|
||||
name="image",
|
||||
field=models.ImageField(null=True, upload_to=core.models.get_game_image_path),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="reward",
|
||||
name="banner_image",
|
||||
field=models.ImageField(null=True, upload_to=core.models.get_reward_banner_image_path),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="reward",
|
||||
name="thumbnail_image",
|
||||
field=models.ImageField(null=True, upload_to=core.models.get_reward_thumbnail_image_path),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="rewardcampaign",
|
||||
name="image",
|
||||
field=models.ImageField(null=True, upload_to=core.models.get_reward_image_path),
|
||||
),
|
||||
]
|
@ -0,0 +1,31 @@
|
||||
# Generated by Django 5.1.1 on 2024-09-21 00:08
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from django.db.migrations.operations.base import Operation
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies: list[tuple[str, str]] = [
|
||||
("core", "0006_benefit_image_dropcampaign_image_game_image_and_more"),
|
||||
]
|
||||
|
||||
operations: list[Operation] = [
|
||||
migrations.AlterModelOptions(
|
||||
name="game",
|
||||
options={"ordering": ["name"]},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name="owner",
|
||||
options={"ordering": ["name"]},
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="game",
|
||||
name="slug",
|
||||
field=models.TextField(null=True, unique=True),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user