Skip to content

Commit 4077289

Browse files
committed
Fix cleanup tests
Cleanup sets instance to a FakeInstance, so needed to find the model through another path.
1 parent ed11b97 commit 4077289

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pictures/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ def update_all(self, other: PictureFieldFile | None = None):
179179
@property
180180
def sender(self):
181181
return (
182-
self.instance._meta.app_label,
183-
self.instance._meta.model_name,
182+
self.field.model._meta.app_label,
183+
self.field.model._meta.model_name,
184184
self.field.name,
185185
)
186186

0 commit comments

Comments
 (0)