Jannis
51375039df
Move alt attribute to kwargs.
2017-05-27 09:50:47 -05:00
Jannis
c1f7abd2e4
Add test for kwargs in template tag.
2017-05-27 09:50:47 -05:00
Raphael Lechner
7f974b87c2
Fix for django >= 1.10
...
The class django.core.management.NoArgsCommand is removed.
2016-12-28 20:45:00 +01:00
reidransom
55be600311
lint fixes
2016-10-29 15:26:36 -04:00
reidransom
0e87dc2f82
Allow provider to override template_name and context
...
Also an example provider which renders the user's initals against
a randomly colored background.
2016-10-29 15:09:57 -04:00
Grant McConnaughey
e5d488a08d
Merge pull request #138 from jnns/german-translation
...
Improve German translation.
2016-10-07 07:21:03 -05:00
Jannis
112141a457
Add verbose_names to Avatar model.
2016-09-16 10:55:13 +02:00
Jannis
a19debce22
Improve German translation.
2016-09-14 13:10:29 +02:00
Jannis
dc145ed57a
Introduce avatar providers.
2016-09-14 12:44:22 +02:00
Grant McConnaughey
0c16c0cbe2
Set version 3.1.0
2016-09-10 11:05:36 -05:00
Christian Sauer
0f492e3bf4
Smallest/Fastest/Easiest/Least Invasive way to get custom templates
2016-08-04 17:31:04 -04:00
Ali Karbassi
9de22c00c4
Maintain verbosity settings.
...
Fixes #20
2016-04-20 18:40:22 -05:00
Hsinfu Huang
9ab18a72d8
add feature of customizing the attribute of avatar img
2016-03-22 19:11:45 +08:00
Grant McConnaughey
65d8d1ea39
Merge branch 'master' of https://github.com/grantmcconnaughey/django-avatar
2016-02-26 10:45:52 -06:00
Grant McConnaughey
8a8330b691
Bump version to 3.0.0
2016-02-26 10:45:21 -06:00
Orion Buske
d974f45cab
Added GRAVITAR_FORCEDEFAULT setting
2016-02-11 12:51:59 -05:00
Grant McConnaughey
5cbd095cda
Rename util -> utils, fix URL issue
2016-02-09 09:42:29 -06:00
Grant McConnaughey
a6b4c2beea
Merge pull request #75 from z4r/patch-1
...
Preserve RGBA image.mode
2016-02-09 09:17:52 -06:00
Grant McConnaughey
c2a5cec2bf
Added documentation for new settings
2016-02-09 09:06:16 -06:00
Grant McConnaughey
b10197ac5a
Merge pull request #105 from barbuza/master
...
`EXPOSE_USERNAMES` prevents sensitive information leakage
2016-02-09 08:46:17 -06:00
Kaspars Sprogis
cdb7974054
New setting to specify path to a method for avatar file path
...
handling. Solves problems related to custom deployments and
directory paths: #10 #9 .
2016-02-08 22:01:12 +02:00
Grant McConnaughey
86a1e59a4d
Remove unused views
2016-01-19 10:12:28 -06:00
Grant McConnaughey
16abb5d50b
Update tests, invalidate cache after changing avatar
2016-01-19 10:00:34 -06:00
Victor Kotseruba
0aaa59e0a7
RANDOMIZE_HASHES option
2016-01-18 18:57:41 +08:00
Victor Kotseruba
724a478738
disable cache option
2016-01-18 18:14:15 +08:00
Grant McConnaughey
a292ad06cb
Set version 2.2.1
2016-01-11 23:01:06 -06:00
Johannes Wilm
6b1aa840f8
remove patterns import
2016-01-04 16:15:30 +01:00
Johannes Wilm
af45e43c46
Remove replace urlpatterns with simple array, make compatible with Django 1.9
2016-01-03 16:10:24 +01:00
Johannes Wilm
7a1435557f
one fix errors in Brazilian translation file
2016-01-03 16:08:31 +01:00
Johannes Wilm
4fd5c60a32
fix two errors in Brazilian translation file
2016-01-03 16:06:05 +01:00
Victor Kotseruba
c9c1873382
facebook backup
2015-12-21 19:44:43 +08:00
toogy
d182c83e0f
Fixing getattr
2015-12-20 20:30:37 -08:00
toogy
10c9e8af0d
Fix GRAVATAR_FIELD > AVATAR_GRAVATAR_FIELD
2015-12-20 20:30:37 -08:00
toogy
6ac3e46a81
Adding the AVATAR_GRAVATAR_FIELD setting to define the user field used to get
...
the gravatar email.
2015-12-20 20:30:37 -08:00
Grant McConnaughey
295bfc4148
Set version 2.2.0
2015-12-02 09:58:46 -06:00
Grant McConnaughey
a258377207
Revert unique user/primary pair
2015-10-23 09:33:10 -05:00
Grant McConnaughey
b14fe1624a
Remove unnecessary try/except on import
2015-10-23 09:08:19 -05:00
Grant McConnaughey
1cad3fc8aa
Update changelog, use Django 1.9b1 for tests
2015-10-23 08:57:23 -05:00
Grant McConnaughey
b6edb17824
Merge pull request #111 from dannybrowne86/master
...
added database-level enforcement of unique user+primary pair in Avatar model
2015-10-23 08:54:34 -05:00
Grant McConnaughey
884210b957
Don't need south migrations anymore
2015-09-24 13:41:12 -05:00
Grant McConnaughey
6db33fe977
Remove strings in urls.py
2015-09-24 13:35:40 -05:00
Grant McConnaughey
0972a4bbe4
Remove load url from future
2015-09-24 10:32:56 -05:00
Danny Browne
00cc973d47
added django migration
2015-09-04 13:14:14 -04:00
Danny Browne
1c56ed5dbc
added database-level enforcement of unique user+primary pair in Avatar model
2015-09-04 12:58:32 -04:00
teolemon
c66e2c2fa8
translate string in French
2015-08-11 21:15:10 +02:00
Grant McConnaughey
7fdcd98410
Set version 2.1.1
2015-08-10 09:42:32 -05:00
Grant McConnaughey
6d2ad4a8bd
Add back load url from future, will remove when 1.9 is out
2015-07-23 10:03:04 -05:00
Grant McConnaughey
be8a172e56
Remove load url from future
2015-07-23 08:43:15 -05:00
Kaloian Minkov
97b1ffd020
Add Django 1.8+ style Meta app_label to Avatar model to prevent RemovedInDjango19Warning
2015-07-23 11:23:33 +03:00
Adam Dobrawy
73ad17491e
Fix typo in polish locale
2015-07-19 15:46:27 +02:00
Adam Dobrawy
f69b5c64d6
Add polish locale
2015-07-19 15:29:42 +02:00
Victor Kotseruba
1197dbe739
EXPOSE_USERNAMES prevents sensitive information leakage
2015-06-12 01:33:20 +03:00
Grant McConnaughey
1c69ecc73c
Fix unicode literals for Python 3.2
2015-05-02 13:23:27 -05:00
Grant McConnaughey
26087d871d
Add south and django migrations
2015-05-02 13:13:51 -05:00
Grant McConnaughey
e01effee06
Update Changelog, __version__, and PyPI classifiers
2015-04-26 23:24:29 -05:00
Grant McConnaughey
ec5de6229a
Merge pull request #94 from allenling/bugfix
...
Update admin.py
2015-04-24 19:40:24 -05:00
Grant McConnaughey
3e312bba4e
Merge pull request #79 from bazerk/master
...
Django allows @ for usernames, so the render_primary url pattern should also
2015-04-24 19:18:23 -05:00
Grant McConnaughey
0a39f1084d
Merge pull request #86 from aptwebapps/master
...
Replace remaining occurrences of AUTO_GENERATE_AVATAR_SIZES
2015-04-24 13:16:55 -05:00
Grant McConnaughey
621d3fc5c7
Merge pull request #66 from kharakawa/trans-ja
...
Add Japanese translation.
2015-04-24 13:14:15 -05:00
Grant McConnaughey
85bf7ba4f0
Merge pull request #70 from Crop-R/dutch
...
Dutch translations
2015-04-24 13:13:41 -05:00
Grant McConnaughey
e504a4e1d7
Merge pull request #85 from ayang/master
...
added simple chinese translation
2015-04-24 13:10:50 -05:00
Grant McConnaughey
18f3297c8d
Merge pull request #88 from joao-bjsoftware/patch-1
...
Update django.po
2015-04-24 13:09:30 -05:00
Igor Mella
d7db61b275
Prevent thumbnails clones
...
To prevent the creation of multiple thumbnails clones "fileName.hash.ext"
2015-01-11 17:49:10 -03:00
Nikos Roussos
6184fb10b7
Use https to gravatar url
2014-09-18 18:21:00 +03:00
root
eee6b08e07
clean out
2014-09-10 22:49:45 +08:00
João Dias de Carvalho Neto
17e7779176
Update django.po
2014-06-03 14:47:32 -03:00
David Lindsey
fcf1c39589
Replace remaining occurences of AUTO_GENERATE_AVATAR_SIZES with AVATAR_AUTO_GENERATE_SIZES
2014-04-03 19:41:12 +05:30
ayang23
75394c2962
added simple chinese translation
2014-03-26 17:28:03 +08:00
Andrew Barrett
bae78c0e95
Django allows @ for usernames, so the render_primary url pattern should do so also.
2014-02-24 15:23:23 +00:00
allenling
8ff6f08a49
Update admin.py
...
The problem is that always display primary avatar for User.
In admin page, the function get_avatar should return different avatar url for every avatar record
2014-01-14 08:48:48 +08:00
Andrea de Marco
c1f278bb84
Preserve RGBA image.mode
2014-01-10 10:35:07 +01:00
Ivor Bosloper
e80d39a618
Dutch translations
2013-11-11 16:29:04 +01:00
Koichi Harakawa
470c75a479
Add Japanese translation.
2013-09-19 12:40:57 +09:00
Jannis Leidel
85ffee8395
Updated version.
2013-09-13 18:54:24 +02:00
Jannis Leidel
6f06989901
Use correct setting module.
2013-09-13 18:36:49 +02:00
Jannis Leidel
65d5f66b9b
Use django-appconf for nicer settings handling.
2013-09-13 17:59:52 +02:00
Jannis Leidel
266240250a
Fix cache_result to actual work.
2013-09-13 17:24:34 +02:00
Jannis Leidel
49148f1d70
Reduce repetition.
2013-09-13 17:24:02 +02:00
Jannis Leidel
0a5673b3ab
D'oh, don't use unicode().
2013-09-13 17:23:31 +02:00
Jannis Leidel
0728f60da8
Merge remote-tracking branch 'origin/master'
2013-09-13 16:39:08 +02:00
Jannis Leidel
831b935ec9
Fixed #28 -- make sure to cast avatar into a string before showing the option of the avatar upload form.
2013-09-13 16:38:57 +02:00
Jannis Leidel
92212bfc17
Merge pull request #61 from integricho/master
...
fix create_thumbnail saving for images not requiring resize
2013-09-13 07:33:54 -07:00
Enric Caumons
5ad41df92c
prevents crash when deleting user with attached avatars ( fixes #52 )
2013-09-10 01:19:29 +02:00
David Loaiza
3f32a2b347
Add spanish locale
2013-08-27 00:22:05 -05:00
andrean
6c9b44e2e7
fix create_thumbnail saving for images not requiring resize
2013-08-14 16:18:52 +02:00
Jannis Leidel
6393d25166
Fixed tests.
2013-08-01 15:29:09 +02:00
Jannis Leidel
fbba5135aa
Removed broken webcam feature.
2013-08-01 14:53:47 +02:00
Jannis Leidel
6f64166e49
Merge pull request #56 from integricho/master
...
Dispatch the avatar_updated signal when an avatar is saved through the admin app
Conflicts:
avatar/admin.py
2013-08-01 14:52:34 +02:00
Jannis Leidel
2131c79441
Use PIL.Image.
2013-08-01 14:48:43 +02:00
Jannis Leidel
543d644c84
Bump version up a notch.
2013-08-01 14:41:30 +02:00
Jannis Leidel
b12bb9f193
Use str just in case.
2013-08-01 14:35:59 +02:00
Jannis Leidel
7a32e3bd47
More Python 3 fixes.
2013-08-01 14:32:03 +02:00
Jannis Leidel
05ef51078f
Use integer sizes.
2013-08-01 14:11:59 +02:00
Jannis Leidel
29570b1a1b
Use storage file directly.
2013-08-01 14:09:04 +02:00
Jannis Leidel
286df0db56
Use Python 3 compat import location for urlparse.
2013-08-01 13:34:55 +02:00
Jannis Leidel
fc98737ce3
Use six.StringIO.
2013-08-01 13:29:19 +02:00
Jannis Leidel
5d3a7dabd9
More Python 3 fixes.
2013-08-01 13:23:19 +02:00
Jannis Leidel
a47e2e2811
Fixed some Python 3 bug.
2013-08-01 13:19:56 +02:00
Jannis Leidel
5e2785e5a5
Merge branch 'master' of github.com:jezdez/django-avatar
...
Conflicts:
avatar/urls.py
tests/settings.py
2013-08-01 13:13:28 +02:00
Jannis Leidel
57d77caeb0
Revamped tests and added Travis config.
2013-08-01 13:12:49 +02:00
Jannis Leidel
280246472d
Fixed setup.py.
2013-08-01 13:11:48 +02:00
Mikko Ohtamaa
217baaa317
Added image content type white list with python-magic
2013-07-19 01:36:33 +03:00
Tomaz Muraus
cd9c9e10cb
Update url configs.
...
django.conf.urls.defaults has been deprecated and now fully removed in 1.6.
2013-07-14 17:40:17 +02:00
Enric Caumons
3fd8461d9e
Replaced django.conf.urls.defaults by django.conf.urls to suppress warning
2013-07-03 20:07:17 +02:00
andrean
ba38663bab
dispatch avatar_updated signal from admin as well
2013-06-26 10:54:29 +02:00
Jannis Leidel
b8844d8cd9
Merge branch 'master' of git://github.com/DrMeers/django-avatar into DrMeers-master
...
Conflicts:
avatar/models.py
2013-05-27 10:13:16 +02:00
Simon Meers
1685dbc76d
{% load url from future %}. See fff8a4e1 :)
2013-05-27 08:59:44 +10:00
Brendon Crawford
8627f67046
Replace Django Hashcompat with Hashlib
2013-03-22 13:55:28 -07:00
Brendon Crawford
5cd280a121
Replace Django hashcompat with hashlib
...
This fixes a DeprecationWarning in Django 1.5, which recommends
no longer using django.utils.hashcompat.
2013-03-22 13:18:04 -07:00
Simon Meers
fff8a4e1d2
Update {% url %} syntax. Not bothering with loading from future for now.
2013-03-15 21:52:45 +11:00
Simon Meers
7ee83431b3
More quickly scrawled / untested custom user model support changes
2013-03-15 21:45:24 +11:00
Simon Meers
93fb42fd83
Commence experimental support for custom User models.
2013-03-15 21:29:07 +11:00
Jannis Leidel
6512c38dcb
Convert the cache key into a smart str before calculating the md5 hash.
2013-03-11 16:51:23 +01:00
Jannis Leidel
c1cc62ee08
Fixed typo.
2013-03-08 12:16:21 +01:00
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