issue#29206 added a deactivated field in AlertWord model

This commit is contained in:
needJobCoder 2024-07-27 14:41:48 +05:30
parent 12207407c9
commit ac1bd7526f
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ class AlertWord(models.Model):
user_profile = models.ForeignKey(UserProfile, on_delete=CASCADE)
# Case-insensitive name for the alert word.
word = models.TextField()
deactivated = models.BooleanField(default=False)
class Meta:
unique_together = ("user_profile", "word")