Commit graph

22 commits

Author SHA1 Message Date
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
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
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
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
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
7f38a3acf5 Added new AVATAR_DEFAULT_SIZE setting with a default of 80. 2010-06-26 19:01:22 +02:00
Jannis Leidel
ff4f450c68 Added a few docstrings. 2010-06-26 17:20:44 +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
c57a7499fb Do significantly fewer SQL queries here. 2010-06-24 10:59:14 -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
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
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