[UPDT] NOTIFICATIONS: Updated notification model class Meta
This commit is contained in:
@@ -216,8 +216,6 @@ class AbstractNotification(models.Model):
|
||||
class Meta:
|
||||
abstract = True
|
||||
ordering = ("-timestamp",)
|
||||
# speed up notifications count query
|
||||
# index_together = ("recipient", "unread")
|
||||
indexes = [
|
||||
models.Index(fields=["recipient", "unread"]),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user