mirror of
https://github.com/pinry/pinry.git
synced 2025-11-13 08:35:41 +01:00
Use caller's Image object when fetching or creating a thumbnail.
This commit is contained in:
@@ -14,7 +14,7 @@ from core.models import Pin, Image
|
||||
|
||||
def filter_generator_for(size):
|
||||
def wrapped_func(obj):
|
||||
return Thumbnail.objects.get_or_create_at_size(obj.pk, size)
|
||||
return Thumbnail.objects.get_or_create_at_size(obj, size)
|
||||
return wrapped_func
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user