Commit graph

607 commits

Author SHA1 Message Date
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
b52c89bbdd Bumped version. 2010-06-27 22:19:57 +02: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
52997b3fa8 Added README and update CONTRIBUTORS file. 2010-06-26 17:46:56 +02:00
Jannis Leidel
d8ea69ee9c Bumped to 1.1a4. 2010-06-26 17:21:01 +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
d686bea25a Ignore all egg-info dirs. 2010-06-26 16:49:50 +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
Brian Rosner
c93065ceba Merge remote branch 'alex/master' 2010-06-24 13:07:24 -06: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
dca68b23e5 Bumped version given latest changes. 2010-05-06 02:13:29 +02: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
9b9ca4a665 Bumped to 1.1a2. 2010-03-21 14:27:46 +01:00
Jannis Leidel
072854a881 Merge branch 'master' of git://github.com/ericflo/django-avatar 2010-03-21 14:27:10 +01: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
Brian Rosner
d60ac863e4 Merge remote branch 'jezdez/master' 2010-03-16 08:43:51 -06:00
Jannis Leidel
f5a252406f Added default image to source distribution. 2010-03-16 15:43:02 +01:00
Brian Rosner
1111e79bcd Merge remote branch 'jezdez/master'
Conflicts:
	setup.py
2010-03-16 08:37:38 -06:00
Jannis Leidel
c240f23b86 Handle non-ASCII filenames correctly when hashing the filename. 2010-03-16 15:34:40 +01:00
Brian Rosner
b948422aa2 Merge branch 'master-old' 2010-03-16 08:34:29 -06:00
Jannis Leidel
afadde4a6e Added translations to source distribution. 2010-03-16 15:25:42 +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
6541bbb67d Bump to an imaginary 1.1a1 release. 2010-03-16 13:55:40 +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
Jannis Leidel
ef2e6e69aa Merge branch 'master' of git://github.com/ericflo/django-avatar 2010-03-15 21:50:07 +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