From 2e1b574486d3dce2924ab1a95b999133799e0704 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 24 Jul 2017 13:41:54 +0100 Subject: [PATCH] README - use Python 3 print function It's 2017!!! --- README.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index e6d9103..d797561 100644 --- a/README.rst +++ b/README.rst @@ -70,8 +70,8 @@ your model class: options={'quality': 60}) profile = Profile.objects.all()[0] - print profile.avatar_thumbnail.url # > /media/CACHE/images/982d5af84cddddfd0fbf70892b4431e4.jpg - print profile.avatar_thumbnail.width # > 100 + print(profile.avatar_thumbnail.url) # > /media/CACHE/images/982d5af84cddddfd0fbf70892b4431e4.jpg + print(profile.avatar_thumbnail.width) # > 100 As you can probably tell, ImageSpecFields work a lot like Django's ImageFields. The difference is that they're automatically generated by @@ -97,8 +97,8 @@ class: options={'quality': 60}) profile = Profile.objects.all()[0] - print profile.avatar_thumbnail.url # > /media/avatars/MY-avatar.jpg - print profile.avatar_thumbnail.width # > 100 + print(profile.avatar_thumbnail.url) # > /media/avatars/MY-avatar.jpg + print(profile.avatar_thumbnail.width) # > 100 This is pretty similar to our previous example. We don't need to specify a "source" any more since we're not processing another image field, but we do need