Skip to content
Snippets Groups Projects
Verified Commit 0ab9e701 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Try next workaround.

parent 09114565
No related branches found
No related tags found
No related merge requests found
......@@ -13,9 +13,13 @@ def get_photo(**kwargs):
'User-Agent': faker.firefox()
}
)
cf = ContentFile(req.content, faker.file_name(extension='jpg'))
cf.__getitem__ = lambda self, key: self
return cf
# Needed to get around hattori trying to truncate to max_length
class _ContentFile(ContentFile):
def __getitem__(self, key):
return self
return _ContentFile(req.content, faker.file_name(extension='jpg'))
class PersonAnonymizer(BaseAnonymizer):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment