mirror of https://github.com/zulip/zulip.git
issue#29206 added a deactivated field in AlertWord model
This commit is contained in:
parent
12207407c9
commit
ac1bd7526f
|
@ -20,6 +20,8 @@ class AlertWord(models.Model):
|
||||||
user_profile = models.ForeignKey(UserProfile, on_delete=CASCADE)
|
user_profile = models.ForeignKey(UserProfile, on_delete=CASCADE)
|
||||||
# Case-insensitive name for the alert word.
|
# Case-insensitive name for the alert word.
|
||||||
word = models.TextField()
|
word = models.TextField()
|
||||||
|
deactivated = models.BooleanField(default=False)
|
||||||
|
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
unique_together = ("user_profile", "word")
|
unique_together = ("user_profile", "word")
|
||||||
|
|
Loading…
Reference in New Issue