Permalink
Browse files

Merge pull request #135 from jaddison/master

Can now change the crop 'type' on the thumbnail field for UserenaBaseProfile.
  • Loading branch information...
2 parents f1163ce + 6186d7e commit 76a6e613bb4917fe6c061a760c3ff59a4a5e16f1 @wunki wunki committed Jan 10, 2012
Showing with 5 additions and 1 deletion.
  1. +1 −1 userena/models.py
  2. +4 −0 userena/settings.py
View
@@ -205,7 +205,7 @@ class UserenaBaseProfile(models.Model):
MUGSHOT_SETTINGS = {'size': (userena_settings.USERENA_MUGSHOT_SIZE,
userena_settings.USERENA_MUGSHOT_SIZE),
- 'crop': 'smart'}
+ 'crop': userena_settings.USERENA_MUGSHOT_CROP_TYPE}
mugshot = ThumbnailerImageField(_('mugshot'),
blank=True,
View
@@ -63,6 +63,10 @@
'USERENA_MUGSHOT_SIZE',
80)
+USERENA_MUGSHOT_CROP_TYPE = getattr(settings,
+ 'USERENA_MUGSHOT_CROP_TYPE',
+ 'smart')
+
USERENA_MUGSHOT_PATH = getattr(settings,
'USERENA_MUGSHOT_PATH',
'mugshots/')

0 comments on commit 76a6e61

Please sign in to comment.