Skip to content

Commit cac9496

Browse files
asuworksalee
authored andcommitted
fix: change SpamModeration.Status choices to: spam, not_spam, scheduled_for_check, spam_likely, not_spam_likely
1 parent c85071b commit cac9496

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Generated by Django 4.2.16 on 2024-12-16 22:41
2+
3+
from django.db import migrations, models
4+
import django.db.models.deletion
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
("core", "0021_add_spam_moderation"),
11+
]
12+
13+
operations = [
14+
migrations.AddField(
15+
model_name="memberprofile",
16+
name="is_marked_spam",
17+
field=models.BooleanField(
18+
default=False,
19+
help_text="cached boolean representation of spam_moderation for search indexing",
20+
),
21+
),
22+
migrations.AddField(
23+
model_name="memberprofile",
24+
name="spam_moderation",
25+
field=models.ForeignKey(
26+
blank=True,
27+
null=True,
28+
on_delete=django.db.models.deletion.SET_NULL,
29+
to="core.spammoderation",
30+
),
31+
),
32+
migrations.AlterField(
33+
model_name="spammoderation",
34+
name="status",
35+
field=models.CharField(
36+
choices=[
37+
("spam", "Confirmed spam"),
38+
("not_spam", "Confirmed not spam"),
39+
("scheduled_for_check", "Scheduled for check by LLM"),
40+
("spam_likely", "Automatically marked as spam"),
41+
("not_spam_likely", "Automatically marked as not spam"),
42+
],
43+
default="scheduled_for_check",
44+
max_length=32,
45+
),
46+
),
47+
]

0 commit comments

Comments
 (0)