Commit graph

31 commits

Author SHA1 Message Date
kurmaev
fc3dc002da Py3 fix 2014-12-30 19:40:51 +06:00
Tomas Babej
32d3b5d088 forms: Replace unicode strings by str 2014-07-21 10:54:03 +02:00
Tomas Babej
d2379c3cfa Various merge fixes and additional pep8 fixes 2014-07-19 20:04:54 +02:00
Tomas Babej
0139cf7d3e Merge remote-tracking branch 'patch/python_magic_validation'
Conflicts:
	avatar/forms.py
	avatar/settings.py
	docs/usage.txt
	tests/tests.py
2014-07-19 17:39:03 +02:00
Tomas Babej
25c77738c3 Merge remote-tracking branch 'eureka/eureka'
Conflicts:
	avatar/forms.py
	avatar/models.py
	avatar/urls.py
2014-07-19 17:10:04 +02:00
Jannis Leidel
65d5f66b9b Use django-appconf for nicer settings handling. 2013-09-13 17:59:52 +02:00
Jannis Leidel
0a5673b3ab D'oh, don't use unicode(). 2013-09-13 17:23:31 +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
Enric Caumons
df1a7f68dd changed some form label names 2013-09-10 01:30: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
Mikko Ohtamaa
217baaa317 Added image content type white list with python-magic 2013-07-19 01:36:33 +03: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
Thomas Schreiber
005d719b94 Allow translation for the label of the avatar ImageField in the UploadAvatarForm 2012-04-12 02:24:01 +03:00
Philipp Wassibauer
f425bfecf3 webcam upload support started, have to add better security measures though 2011-01-24 14:59:44 +01:00
Jannis Leidel
7f38a3acf5 Added new AVATAR_DEFAULT_SIZE setting with a default of 80. 2010-06-26 19:01:22 +02: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
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
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
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
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
Eric Florenzano
c3fadc0377 Completely refactored this package so that it no longer references the local filesystem. The API has been simplified and it has been tested with both file system backends and S3 backends. Gearing up for the first official release.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@30 c76b2324-5f53-0410-85ac-b1078a54aeeb
2008-10-28 06:39:21 +00:00
Eric Florenzano
ba8e3268fb Made all imports relative and cleaned up the imports in general. Thanks, PyFlakes!
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@29 c76b2324-5f53-0410-85ac-b1078a54aeeb
2008-10-20 01:11:10 +00:00
Eric Florenzano
b6bf5cf1d0 Modified the rest of the module to be able to make use of the new added flexibility of the non-gravatar interface.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@20 c76b2324-5f53-0410-85ac-b1078a54aeeb
2008-08-12 08:12:38 +00:00