[FIX] NOTIFICATIONS: Workaround for fix against Django 5

This commit is contained in:
Horilla
2025-06-13 10:52:30 +05:30
parent 561ef8d23f
commit fe37fbb8c6

View File

@@ -225,7 +225,11 @@ class AbstractNotification(models.Model):
abstract = True
ordering = ("-timestamp",)
# speed up notifications count query
index_together = ("recipient", "unread")
# index_together = ("recipient", "unread")
indexes = [
models.Index(fields=["recipient", "unread"]),
]
def __str__(self):
ctx = {