Commit graph

13 commits

Author SHA1 Message Date
Mathieu Pillard
afde1c6268 special case for AVATAR_MAX_AVATARS_PER_USER == 1: try to work always on the same db row, by re-using the id. 2010-02-22 16:23:35 -05:00
Mathieu Pillard
731e580c91 Don't update the other avatars if the maximum is set to 1: it shouldn't happen. 2010-02-22 16:21:12 -05:00
Brian Rosner
737bf1d821 Removed some legacy code that is no longer used. Closes #1.
Due to catching the User post_save signal this would be fired on each login
since last_login is always updated.
2009-04-23 12:43:55 -06:00
Eric Florenzano
221b52a65c Fixed the apparent problem with PNG and S3 that some were seeing. Thanks, msaelices and bryanveloso. Along with that fix also comes support for not resizing an image if it's already the correct size.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@35 c76b2324-5f53-0410-85ac-b1078a54aeeb
2008-12-04 08:59:40 +00:00
Eric Florenzano
57c036ed39 Slightly shallower resized image paths.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@32 c76b2324-5f53-0410-85ac-b1078a54aeeb
2008-10-28 06:53:08 +00:00
Eric Florenzano
c3fadc0377 Completely refactored this package so that it no longer references the local filesystem. The API has been simplified and it has been tested with both file system backends and S3 backends. Gearing up for the first official release.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@30 c76b2324-5f53-0410-85ac-b1078a54aeeb
2008-10-28 06:39:21 +00:00
Eric Florenzano
ba8e3268fb Made all imports relative and cleaned up the imports in general. Thanks, PyFlakes!
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@29 c76b2324-5f53-0410-85ac-b1078a54aeeb
2008-10-20 01:11:10 +00:00
James Tauber
e8ff23bbb6 fixed force_insert problem
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@28 c76b2324-5f53-0410-85ac-b1078a54aeeb
2008-09-01 12:47:43 +00:00
Eric Florenzano
53a44ef2c0 Changed the max_length of the avatar ImageField, as we were seeing some errors about the path being too short.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@26 c76b2324-5f53-0410-85ac-b1078a54aeeb
2008-08-16 06:07:06 +00:00
Eric Florenzano
559eb4ae99 Fixed problem with uploading .GIF files, as they need to be conditionally converted to RGB.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@23 c76b2324-5f53-0410-85ac-b1078a54aeeb
2008-08-16 05:48:33 +00:00
Eric Florenzano
b6bf5cf1d0 Modified the rest of the module to be able to make use of the new added flexibility of the non-gravatar interface.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@20 c76b2324-5f53-0410-85ac-b1078a54aeeb
2008-08-12 08:12:38 +00:00
Eric Florenzano
810ce3f8e4 Completely refactored this module. The model has been changed to reflect more sane defaults. A new set of templatetags have been created as well, however, the gravatar public API has been preserved. The only thing that still needs to be done is to rewrite the administrative views for uploading/deleting/changing avatars.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@19 c76b2324-5f53-0410-85ac-b1078a54aeeb
2008-08-10 22:55:25 +00:00
Eric Florenzano
9e85aba9f7 Initial version.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@2 c76b2324-5f53-0410-85ac-b1078a54aeeb
2008-08-01 09:27:59 +00:00