From ada883c99f6e76ac17422d41fa0c62f897f2401c Mon Sep 17 00:00:00 2001 From: Rich Leland Date: Thu, 13 Jun 2013 14:10:23 -0400 Subject: [PATCH] Fixed name of spec id attr --- docs/advanced_usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/advanced_usage.rst b/docs/advanced_usage.rst index 6db2071..bb635e7 100644 --- a/docs/advanced_usage.rst +++ b/docs/advanced_usage.rst @@ -47,7 +47,7 @@ for creating an ``ImageSpec``, registering it, and associating it with an class Profile(models.Model): avatar = models.ImageField(upload_to='avatars') avatar_thumbnail = ImageSpecField(source='avatar', - spec_id='myapp:profile:avatar_thumbnail') + id='myapp:profile:avatar_thumbnail') Obviously, the shorthand version is a lot, well…shorter. So why would you ever want to go through the trouble of using the long form? The answer is that the @@ -97,7 +97,7 @@ for getting this information. class Profile(models.Model): avatar = models.ImageField(upload_to='avatars') avatar_thumbnail = ImageSpecField(source='avatar', - spec_id='myapp:profile:avatar_thumbnail') + id='myapp:profile:avatar_thumbnail') thumbnail_width = models.PositiveIntegerField() thumbnail_height = models.PositiveIntegerField()