Commit graph

83 commits

Author SHA1 Message Date
bastb
6a2c361502 Additional fixes for Django 3 2019-12-03 15:37:01 +01:00
Martin Sedlář
fb195a570f Add avatar_deleted signal 2017-11-09 23:20:59 +01:00
Christian Sauer
0f492e3bf4 Smallest/Fastest/Easiest/Least Invasive way to get custom templates 2016-08-04 17:31:04 -04:00
Grant McConnaughey
5cbd095cda Rename util -> utils, fix URL issue 2016-02-09 09:42:29 -06: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
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
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
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
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
642eb4937b A couple of minor cosmetic fixes. 2013-03-04 12:41: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
Patrick Altman
8fd0cc6411 Update messages so it's compatible with Django 1.4 2012-07-19 09:56:00 -05: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
Philipp Wassibauer
844fef5fee updating to django 1.4 2011-12-23 23:02:32 +01: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
Jannis Leidel
7f38a3acf5 Added new AVATAR_DEFAULT_SIZE setting with a default of 80. 2010-06-26 19:01:22 +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
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
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
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
1fb5b47ca0 Add a clarifying comment 2010-02-22 18:08:01 -05:00
Eric Florenzano
3035f0adc8 Use PyFlakes to fix some fail 2010-02-22 16:47:10 -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
e86823251b Use pretty decorators 2010-02-22 16:33:47 -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
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
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
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
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