Commit graph

78 commits

Author SHA1 Message Date
Clement Cavanier
69901569a3 Support for Django 2 2017-12-06 15:06:45 +01:00
Grant McConnaughey
f8716937b0 Prevented creation of the new migrations with non-default DEFAULT_FILE_STORAGE 2017-08-27 08:45:45 -05:00
Jannis
6091dd90fe Add blank line to resolve failing PEP8 check. 2017-05-27 09:50:47 -05:00
Jannis
112141a457 Add verbose_names to Avatar model. 2016-09-16 10:55:13 +02: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
Victor Kotseruba
0aaa59e0a7 RANDOMIZE_HASHES option 2016-01-18 18:57:41 +08:00
Grant McConnaughey
a258377207 Revert unique user/primary pair 2015-10-23 09:33:10 -05:00
Danny Browne
1c56ed5dbc added database-level enforcement of unique user+primary pair in Avatar model 2015-09-04 12:58:32 -04: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
Victor Kotseruba
1197dbe739 EXPOSE_USERNAMES prevents sensitive information leakage 2015-06-12 01:33:20 +03:00
Andrea de Marco
c1f278bb84 Preserve RGBA image.mode 2014-01-10 10:35:07 +01:00
Jannis Leidel
65d5f66b9b Use django-appconf for nicer settings handling. 2013-09-13 17:59:52 +02:00
Jannis Leidel
49148f1d70 Reduce repetition. 2013-09-13 17:24:02 +02:00
andrean
6c9b44e2e7 fix create_thumbnail saving for images not requiring resize 2013-08-14 16:18:52 +02:00
Jannis Leidel
2131c79441 Use PIL.Image. 2013-08-01 14:48:43 +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
fc98737ce3 Use six.StringIO. 2013-08-01 13:29:19 +02:00
Jannis Leidel
a47e2e2811 Fixed some Python 3 bug. 2013-08-01 13:19:56 +02:00
Jannis Leidel
57d77caeb0 Revamped tests and added Travis config. 2013-08-01 13:12:49 +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
Brendon Crawford
8627f67046 Replace Django Hashcompat with Hashlib 2013-03-22 13:55:28 -07: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
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
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
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
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
Jannis Leidel
7b0d9b4a9a Added ability to specify a custom storage backend. 2012-04-20 17:45:56 +02:00
Jannis Leidel
7913cb7a5c Use django.utils.timezone.now if needed. 2012-01-24 16:44:25 +01: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
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
92f9794701 Merge branch 'master' of git://github.com/alex/django-avatar 2010-06-24 18:02:32 +02:00
Alex Gaynor
4180a7a101 Fixes for Django 1.2 2010-06-24 10:56:04 -05: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
c240f23b86 Handle non-ASCII filenames correctly when hashing the filename. 2010-03-16 15:34:40 +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
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
Eric Florenzano
111ecd8543 Obsessive compulsive import cleanup 2010-02-22 18:52:37 -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