Skip to content

Commit

Permalink
Merge branch 'release/0.3.14' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Dec 5, 2023
2 parents 7f988cb + b5e1205 commit 3ba3b78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_audit_fields/models/audit_model_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ def save(self, *args, **kwargs):
def verbose_name(self):
return self._meta.verbose_name

class Meta:
class Meta(RevisionModelMixin.Meta):
abstract = True
indexes = [
models.Index(fields=["-modified", "-created"]),
models.Index(fields=["modified", "created"]),
models.Index(fields=["user_modified", "user_created"]),
]
1 change: 1 addition & 0 deletions django_audit_fields/models/audit_uuid_model_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ class AuditUuidModelMixin(AuditModelMixin, models.Model):

class Meta(AuditModelMixin.Meta):
abstract = True
indexes = AuditModelMixin.Meta.indexes

0 comments on commit 3ba3b78

Please sign in to comment.