Commit graph

174 commits

Author SHA1 Message Date
Jannis Leidel
cc4b06622f Merge branch 'master' of github.com:jezdez/django-avatar 2013-03-08 12:05:30 +01:00
Jannis Leidel
7aa9b49064 Use slugify on the cache key and append it with a hash of the full key to prevent too long keys (looking at you, Memcache). 2013-03-08 12:05:03 +01:00
Jannis Leidel
e46fdcc0e5 Merge pull request #31 from frost-nzcr4/ft-locale-ru
Add translation to Russian
2013-03-04 03:52:45 -08:00
Jannis Leidel
7247ae77a9 Renamed AVATAR_BASE_URL to AVATAR_GRAVATAR_BASE_URL. 2013-03-04 12:48:49 +01:00
Jannis Leidel
5b30e6e1d0 Merge branch 'master' of github.com:jezdez/django-avatar 2013-03-04 12:41:53 +01:00
Jannis Leidel
642eb4937b A couple of minor cosmetic fixes. 2013-03-04 12:41:43 +01:00
Jannis Leidel
1f94028511 Merge pull request #33 from rizumu/patch-1
Allow translation for the label of the avatar ImageField in the UploadAv...
2013-03-04 03:37:37 -08:00
Mathieu Pillard
aac26b8c70 Add a get_absolute_url() method to help implementors (it needs to exists for projects to overwrite it)
Conflicts:
	avatar/models.py
2013-03-04 12:32:48 +01:00
Jannis Leidel
a103d2bd3f Renamed AVATAR_CLEAN_REMOVED to AVATAR_CLEANUP_DELETED. 2013-03-04 12:28:43 +01:00
Jannis Leidel
68731b6bc6 Merge remote-tracking branch 'chadpaulson/master'
Conflicts:
	MANIFEST.in
	avatar/models.py
	avatar/settings.py
	avatar/templatetags/avatar_tags.py
	avatar/views.py
	setup.py
2013-03-04 11:43:23 +01:00
Jannis Leidel
47664e3fbe Merge branch 'master' of github.com:jezdez/django-avatar
Conflicts:
	avatar/urls.py
	avatar/views.py
	setup.py
2013-03-04 11:33:40 +01:00
Jannis Leidel
5144ba0300 Merge pull request #37 from guzru/master
Support for django >=1.4
2013-03-04 02:29:43 -08:00
Chad Paulson
b5937382ab Added post_delete signal to Avatar model in order to clean up the file system when AVATAR_MAX_AVATARS_PER_USER is equal to 1 or when Avatar instances are removed. This functionality is controlled by the new AVATAR_CLEAN_REMOVED setting which is False by default. 2013-01-18 19:39:31 -06:00
Michele Mattioni
859ed76805 Optional css_class passed as args to the avatar tag.
If no class is passed, no class is added.
2012-11-18 18:35:37 +00:00
Cristiano Valente
22df7a8902 Support for username with extra chars. 2012-10-12 14:45:47 +02:00
Jannis Leidel
264c83671a Fixed invalidating the avatar cache by making it happen post_save and post_delete. 2012-10-05 15:52:02 +02:00
Jannis Leidel
2650cf0282 Minor syntax cleanup. 2012-10-05 12:07:47 +02:00
Jannis Leidel
c8bf40ebe3 Catch IOError in the rest of the create_thumbnail method, too, to work around an issue with Django>1.4.1 which verifies the images being saved. 2012-10-05 12:07:13 +02:00
Patrick Altman
ea61cf10e0 Add ability to use https with gravatar 2012-08-29 05:32:29 -05:00
Jannis Leidel
3b6c77144e Made the avatar tag a simple_tag again as it doesn't break backwards compatibility. 2012-08-28 16:09:37 +02:00
Jannis Leidel
7d0ba11d11 Added forgotten user variable to avatar tag template context. 2012-08-21 14:39:15 +02:00
Jannis Leidel
aa4e58168f Made the avatar template tag an inclusion tag to be able to override the default template. 2012-08-21 14:36:49 +02:00
Cristiano Valente
cd7401dc4f Updated to support django <=1.4 2012-08-08 21:24:43 +02:00
Patrick Altman
8fd0cc6411 Update messages so it's compatible with Django 1.4 2012-07-19 09:56:00 -05:00
Flavio Curella
7ccd5cdf66 added AVATAR_BASE_URL setting 2012-06-30 14:24:10 -05:00
Jannis Leidel
59af1c3cb1 Minor fixes for the admin class. 2012-04-25 12:18:18 +02:00
Jannis Leidel
4a81a2a388 Merge remote-tracking branch 'ericflo/master'
Conflicts:
	avatar/management/__init__.py
	avatar/views.py
	setup.py
2012-04-25 12:05:16 +02:00
Jannis Leidel
66ab58631d Simplified the has_avatar filter. 2012-04-25 11:58:57 +02:00
Jannis Leidel
7b0d9b4a9a Added ability to specify a custom storage backend. 2012-04-20 17:45:56 +02:00
Thomas Schreiber
005d719b94 Allow translation for the label of the avatar ImageField in the UploadAvatarForm 2012-04-12 02:24:01 +03:00
frost-nzcr4
f013f7c48d Add translation to Russian 2012-03-17 00:46:08 +04:00
Jannis Leidel
7913cb7a5c Use django.utils.timezone.now if needed. 2012-01-24 16:44:25 +01:00
Philipp Wassibauer
844fef5fee updating to django 1.4 2011-12-23 23:02:32 +01:00
Philipp Wassibauer
f3bca7386d filter added to check if avatar is available 2011-07-01 11:13:47 +02:00
Philipp Wassibauer
30d939ad70 admin interface displays avatar and is filterable 2011-06-22 00:03:14 +02:00
Philipp Wassibauer
d3e98504c8 avatars can be displayed as gallery now 2011-04-01 15:05:29 +02:00
Brian Rosner
bc0a34612c removed all dependence on django-notification and django-friends by changing to emitting signals 2011-03-16 17:57:32 -04:00
Philipp Wassibauer
cc5427ef80 removed notifications, since updates to my own avatar should not be send by email, updates to friends avatar is taken care by activity streams 2011-02-01 10:25:06 +01:00
Philipp Wassibauer
f425bfecf3 webcam upload support started, have to add better security measures though 2011-01-24 14:59:44 +01:00
Philipp Wassibauer
ee0223c1f3 avatar does not break if used with simple-friends, bumped version 2010-10-10 13:19:11 +02:00
Philipp Wassibauer
8c14542220 fixing simplefriend switch 2010-09-06 00:45:11 -07:00
Philipp Wassibauer
cdc456e8af small fix again, now it works to use any type of cropping/scaling with avatars in templates 2010-07-30 06:38:50 -07:00
Philipp Wassibauer
b67a6fe332 small fix 2010-07-30 06:11:33 -07:00
Philipp Wassibauer
1315b63daf added function to retrieve image field of avatar via templatetag, therefore opening the possibility to use different formats for the avatar in page, not just square 2010-07-30 06:00:55 -07:00
Jannis Leidel
7f38a3acf5 Added new AVATAR_DEFAULT_SIZE setting with a default of 80. 2010-06-26 19:01:22 +02:00
Jannis Leidel
22b85c5028 Moved settings from avatar main module to own settings module and signal callback to models module to be able to prevent import errors in non-Django Python environments. 2010-06-26 19:00:31 +02:00
Jannis Leidel
ff4f450c68 Added a few docstrings. 2010-06-26 17:20:44 +02:00
Jannis Leidel
17b183d315 Also invalidate the cache when deleting an avatar. 2010-06-26 17:20:29 +02:00
Jannis Leidel
1413c4000d Added template tag caching (default timeout: 60 minutes) to template tags, includes invalidation. 2010-06-26 16:49:35 +02:00
Jannis Leidel
079d488607 Merge branch 'master' of git://github.com/ericflo/django-avatar 2010-06-25 09:23:01 +02:00