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
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
Alex Gaynor
6463e870c3
Removed superflous code.
2010-06-24 11:06:11 -05:00
Jannis Leidel
92f9794701
Merge branch 'master' of git://github.com/alex/django-avatar
2010-06-24 18:02:32 +02:00
Alex Gaynor
c57a7499fb
Do significantly fewer SQL queries here.
2010-06-24 10:59:14 -05:00
Alex Gaynor
4180a7a101
Fixes for Django 1.2
2010-06-24 10:56:04 -05:00
Jannis Leidel
301166b8d6
The default avatar URL could also start with https.
2010-05-06 00:53:53 +02:00
Mathieu Pillard
61879cee7e
AVATAR_DEFAULT_URL can start with http:// if for some reason it's hosted on another domain
...
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2010-05-06 00:51:57 +02:00
Mathieu Pillard
3be0c2ca01
Fix redirect to only happen if the "add" action was successful. It was already breaking unit tests, but add more to be sure.
...
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2010-05-06 00:46:21 +02:00
Mathieu Pillard
aaa1b62221
FR translation .mo
...
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2010-05-06 00:45:52 +02:00
Mathieu Pillard
83033731df
French translations update
...
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2010-05-06 00:45:43 +02:00
Mathieu Pillard
768359b11d
Use django 1.2 CSRF protection
...
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2010-05-06 00:45:19 +02:00
Mathieu Pillard
32b61553d2
Fix for issue #12 on ericflo/django-avatar, proposed by fakeempire
...
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2010-05-06 00:44:45 +02:00
Jannis Leidel
55f29b62be
Added redirect to add view to be able to add an image from a different URL/template without landing on the add template afterwards.
2010-03-21 14:22:43 +01:00
Jannis Leidel
c240f23b86
Handle non-ASCII filenames correctly when hashing the filename.
2010-03-16 15:34:40 +01:00
Jannis Leidel
b34197fb92
Added German translation.
2010-03-16 15:20:01 +01:00
Jannis Leidel
6bc17d0668
Marked a few strings for translation.
2010-03-16 15:19:54 +01:00
Jannis Leidel
929c8a0e4f
Added thumb quality setting which is used in the create_thumbnail() method.
2010-03-16 14:56:15 +01:00
Daniel T. Alvarenga
5996dfa5b5
Added Portuguese (Brazilian) translation.
...
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2010-03-16 14:40:05 +01:00
PLHW
233422eefd
adding default quality param to create_thumbnail
...
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2010-03-16 14:31:25 +01:00
Mathieu Pillard
0307dc2a79
More unit tests.
2010-03-16 14:28:40 +01:00
Mathieu Pillard
1e48a80f97
FIXME: more tests that need to be coded
...
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2010-03-16 14:22:25 +01:00
Mathieu Pillard
1aa882d4d6
Test get_primary_avatar behaviour
...
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2010-03-16 14:22:08 +01:00
Mathieu Pillard
c431bf9bf8
Fixed issue #7 : get_primary shouldn't return urls, it should return objects (or just None in that case)
...
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2010-03-16 13:58:17 +01:00
Jannis Leidel
3fc9e7928c
Allow overriding the upload and primary avatar form via a view parameter. Also don't set the default of the extra_context parameter in the function declaration.
2010-03-16 13:55:26 +01:00
Jannis Leidel
6377797e3f
Don't rely on the Django app cache's get_app() since it's not guaranteed to find the app whe django-avatar is loaded.
2010-03-16 13:53:41 +01:00
Eric Florenzano
85adf39b24
More obsessive compulsiveness
2010-02-22 18:56:31 -05:00
Eric Florenzano
111ecd8543
Obsessive compulsive import cleanup
2010-02-22 18:52:37 -05:00
Eric Florenzano
b50c1b1780
Cleanup, reorganization, moved the default avatar url to conform to community standards, and added a test to ensure that it's correct.
2010-02-22 18:50:46 -05:00
Eric Florenzano
5648cb9f11
Cleanup, reorganization, moved the default avatar url to conform to community standards, and added a test to ensure that it's correct.
2010-02-22 18:48:22 -05:00
Eric Florenzano
67361f3933
Remove vestigial import
2010-02-22 18:19:22 -05:00
Eric Florenzano
2ef99bc3c1
Moved default.jpg to reflect the community standard for media files
2010-02-22 18:19:08 -05:00
Eric Florenzano
1fb5b47ca0
Add a clarifying comment
2010-02-22 18:08:01 -05:00
James Turnbull
acdd9539ae
Moved template folder to correct name (notification)
2010-02-22 16:55:14 -05:00
James Turnbull
08a30aa851
Cleaned up noticetext, removing reference to the user's gender and nonsense regarding tribes
2010-02-22 16:54:59 -05:00
Eric Florenzano
3035f0adc8
Use PyFlakes to fix some fail
2010-02-22 16:47:10 -05:00
Mathieu Pillard
c364ca7aa1
Replace hashlib by django's md5_constructor
2010-02-22 16:36:55 -05:00
Mathieu Pillard
984131894b
Allow extra args that might be sent to the views. Useful with custom URLConf for instance.
2010-02-22 16:36:45 -05:00
Mathieu Pillard
b8341f916b
fix resize for render_primary: size is a string, we need to convert it to an integer.
2010-02-22 16:36:35 -05:00
Mathieu Pillard
8cd775a41f
render_primary() needs AVATAR_DEFAULT_URL
2010-02-22 16:36:23 -05:00
Eric Florenzano
2e55166df6
Fixed conflicts
2010-02-22 16:35:57 -05:00
Mathieu Pillard
628948f8ed
Marking added strings for translation and providing a basic french translation
2010-02-22 16:34:19 -05:00
Mathieu Pillard
e5b81caaff
Lowercase filename just in case.
2010-02-22 16:34:11 -05:00
Mathieu Pillard
7bd5972aeb
Implement a basic file extension validation system.
2010-02-22 16:34:04 -05:00
Mathieu Pillard
ea8479d7bb
Force thumbnail extension if AVATAR_HASH_FILENAMES is true. Avoids having
...
.jpg images that are really PNGs.
2010-02-22 16:33:56 -05:00
Mathieu Pillard
e86823251b
Use pretty decorators
2010-02-22 16:33:47 -05:00
Mathieu Pillard
0b9a075070
More basic tests
2010-02-22 16:33:39 -05:00
Mathieu Pillard
837bdadd31
Adding basic tests
2010-02-22 16:33:25 -05:00
Mathieu Pillard
ce88c225ca
Oops.
2010-02-22 16:33:14 -05:00
Mathieu Pillard
757283b823
Implement filename hashing (in case we don't want to blindly accept the filenames supplied by the user) and directory hashing (to allow
...
storage paths like /avatars/a/b/<user>/...)
2010-02-22 16:32:55 -05:00
Mathieu Pillard
3c3ffad9c3
Will revisit that later, it's not a big issue
2010-02-22 16:32:30 -05:00
Mathieu Pillard
aaeca7222e
Thumbnails path simplification - /AVATAR_STORAGE_DIR/<user>/resized/<size>/<name> is enough. And this
...
method is more DRY, which will help when we'll implement the advanced storage path stuff
2010-02-22 16:32:22 -05:00
Mathieu Pillard
b2f3bec769
This time it should really work in every case... I hope. This really needs some unit tests.
2010-02-22 16:32:00 -05:00
Mathieu Pillard
84aa3b84d3
irrelevant now
2010-02-22 16:31:52 -05:00
Mathieu Pillard
2055adb46d
This was needed too - basically, only enforce AVATAR_MAX_AVATARS_PER_USER in the form.
2010-02-22 16:31:36 -05:00
Mathieu Pillard
5621d867b1
use the user from the avatar instance
2010-02-22 16:31:28 -05:00
Mathieu Pillard
0b5674f008
Simplify image handling. Breaks the new AVATAR_DONT_SAVE_DUPLICATES setting but I will revisit it later in a cleaner way
2010-02-22 16:31:14 -05:00
Mathieu Pillard
8a680ecd66
Actually not a good idea at all :) Just don't bother updating and that's it.
2010-02-22 16:30:41 -05:00
Mathieu Pillard
b7811b3d14
is a boolean
2010-02-22 16:30:14 -05:00
Mathieu Pillard
763745c4cb
if AVATAR_DONT_SAVE_DUPLICATES is enabled don't generate a thumbnail over an existing one
2010-02-22 16:30:05 -05:00
Mathieu Pillard
5e804236a8
new preference allowing to re-use existing file if it exists. might have concurrency issues since
...
we don't ask the database if it exists, only the storage system, so it might break if it's being
deleted at the same time
2010-02-22 16:29:58 -05:00
Mathieu Pillard
dd1e3069ce
Make thumbnail format configurable
2010-02-22 16:29:39 -05:00
Mathieu Pillard
a686c9b900
Don't use only(id) now that we are deleting instead of updating
2010-02-22 16:29:28 -05:00
Mathieu Pillard
188c4dece0
Deleting instead of updating for now
2010-02-22 16:29:19 -05:00
Mathieu Pillard
e96db94b02
debugging, not needed
2010-02-22 16:29:08 -05:00
Mathieu Pillard
7a6c2e04a9
This method is more closer to the original and should be more robust even if you change the max number of avatars
2010-02-22 16:28:58 -05:00
Mathieu Pillard
fe2fe0c1c3
Oops, need to actually get the first item of the queryset
2010-02-22 16:27:54 -05:00
Mathieu Pillard
b4646e5b5f
More robust way of fetching the current avatar - still needs some testing
2010-02-22 16:27:21 -05:00
Mathieu Pillard
3b04839078
Better wording
2010-02-22 16:26:20 -05:00
Mathieu Pillard
32b5d5f55f
Don't use notification if the module is not present (probably broke that when refactoring notifications)
2010-02-22 16:26:04 -05:00
Mathieu Pillard
e0654c8d57
Implement a max size for the avatars. Defaults to 1 megabyte for now.
2010-02-22 16:25:09 -05:00
Mathieu Pillard
470b90be4a
Useless print
2010-02-22 16:24:56 -05:00
Mathieu Pillard
84b68d4284
Not needed
2010-02-22 16:24:46 -05:00
Mathieu Pillard
1aaaac1ce0
Fixed now
2010-02-22 16:24:36 -05:00
Mathieu Pillard
04a5a271de
Use our uploadform in the templates
2010-02-22 16:24:17 -05:00
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
cbb8421720
Raise an error if trying to upload an avatar when the maximum number was already reached
2010-02-22 16:23:22 -05:00
Mathieu Pillard
811e238332
Forgot this in my last commit - Refactoring : Move avatar upload to its own view, form and template part 2
2010-02-22 16:22:01 -05:00
Mathieu Pillard
df05b32c30
Refactoring : Move avatar upload to its own view, form and template. Needs some cleanup still.
...
I should have done this before adding the max avatars setting... oh well.
2010-02-22 16:21:43 -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
Mathieu Pillard
a5e906e36d
Starting to implement new AVATAR_MAX_AVATARS_PER_USER setting to limit the maximum number of avatars for each user
2010-02-22 16:20:46 -05:00
Mathieu Pillard
853916273f
Don't use multiple querysets for the same list (might revisit the .get() for avatar later)
2010-02-22 16:19:57 -05:00
Mathieu Pillard
700e47cfb0
Ignore pyc files
2010-02-22 16:17:37 -05:00
Ahmad Al-Ibrahim
df60156e30
Fixed #586 - Added login_required to avatar.views.delete
2010-02-09 09:21:19 +08:00
Ross Poulton
073e9a9c10
Provide Gravatar default url in settings.AVATAR_GRAVATAR_DEFAULT - will be used by Gravatar if the user has no avatar for that email address.
2010-02-08 16:41:40 +08:00
John Debs
ed21e5a907
Fix for error in django-avatar 1.0.3 (task #524 ).
2009-11-10 05:18:52 +08:00
Jakob Torp Svendsen
cc158668ea
Check for django-friends using INSTALLED_APPS to prevent imports from happening
...
Reported to Pinax as http://code.pinaxproject.com/tasks/task/481/
Signed-off-by: Brian Rosner <brosner@gmail.com>
2009-11-07 11:15:06 -07:00
ben.browitt@gmail.com
430150e2a7
removed new_primary from views.py delete method
...
Signed-off-by: Eric Florenzano <floguy@gmail.com>
2009-05-25 12:59:28 +08:00