[FIX] NOTIFICATIONS: Workaround for fix against Django 5
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user