Implement Chzzk campaign management features, including models, views, and templates
Some checks failed
Deploy to Server / deploy (push) Failing after 9s
Some checks failed
Deploy to Server / deploy (push) Failing after 9s
This commit is contained in:
parent
677aedf42b
commit
9ce324fd2d
12 changed files with 594 additions and 164 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# Generated by Django 6.0.3 on 2026-03-31 19:33
|
||||
# Generated by Django 6.0.3 on 2026-04-01 01:57
|
||||
|
||||
import django.db.models.deletion
|
||||
import django.utils.timezone
|
||||
|
|
@ -7,7 +7,7 @@ from django.db import models
|
|||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
"""Initial migration for ChzzkCampaign and ChzzkReward models."""
|
||||
"""Initial migration for chzzk app, creating ChzzkCampaign and ChzzkReward models."""
|
||||
|
||||
initial = True
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ class Migration(migrations.Migration):
|
|||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("campaign_no", models.BigIntegerField(unique=True)),
|
||||
("campaign_no", models.BigIntegerField()),
|
||||
("title", models.CharField(max_length=255)),
|
||||
("image_url", models.URLField()),
|
||||
("description", models.TextField()),
|
||||
|
|
@ -53,11 +53,11 @@ class Migration(migrations.Migration):
|
|||
("scraped_at", models.DateTimeField(default=django.utils.timezone.now)),
|
||||
("source_api", models.CharField(max_length=16)),
|
||||
("scrape_status", models.CharField(default="success", max_length=32)),
|
||||
("raw_json", models.JSONField()),
|
||||
("raw_json_v1", models.JSONField(blank=True, null=True)),
|
||||
("raw_json_v2", models.JSONField(blank=True, null=True)),
|
||||
],
|
||||
options={
|
||||
"ordering": ["-start_date"],
|
||||
"unique_together": {("campaign_no", "source_api")},
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue