Skip to content

Commit

Permalink
fix: Remove psycho_hazard field from UserPsychoPass model
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonejt committed May 13, 2024
1 parent 4a38e60 commit 9540f37
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 17 additions & 0 deletions psychopass/migrations/0006_remove_userpsychopass_psycho_hazard.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 5.0.6 on 2024-05-13 02:00

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
("psychopass", "0005_alter_userpsychopass_identity_attack_and_more"),
]

operations = [
migrations.RemoveField(
model_name="userpsychopass",
name="psycho_hazard",
),
]
2 changes: 0 additions & 2 deletions psychopass/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
class UserPsychoPass(models.Model):
platform = models.ForeignKey(get_user_model(), on_delete=models.CASCADE)
user_id = models.CharField(max_length=20, unique=True)

messages = models.PositiveIntegerField(db_default=0)
psycho_hazard = models.BooleanField(db_default=False)

toxicity = models.FloatField(db_default=0.5)
severe_toxicity = models.FloatField(db_default=0.5)
Expand Down

0 comments on commit 9540f37

Please sign in to comment.