Skip to content

Commit c0f04b5

Browse files
authored
Merge pull request #263 from egguy/master
Add __qualname__ property to allow migration without problems
2 parents 46f6053 + 39ec4ea commit c0f04b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

django_prometheus/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ def delete(self, *args, **kwargs):
5050
model_deletes.labels(model_name).inc()
5151
return super().delete(*args, **kwargs)
5252

53+
Mixin.__qualname__ = f"ExportModelOperationsMixin('{model_name}')"
5354
return Mixin

0 commit comments

Comments
 (0)