Commit graph

32 commits

Author SHA1 Message Date
Johannes Wilm
a977753b2c lint and add pre-commit configuration 2022-08-09 21:17:24 +02:00
Johannes Wilm
6ba1280a7e remove six 2022-07-16 23:25:43 +02:00
Johannes Wilm
ae950c9b50 black 2022-07-16 22:50:05 +02:00
Johannes Wilm
03c95bc925 update imports 2022-07-16 22:26:58 +02:00
rsp2k
12a6d65454
Update forms.py 2022-01-27 13:22:00 -07:00
bastb
805920e521 Yet another attempt 2019-12-03 15:43:31 +01:00
bastb
4ab2b379e7 Autocorrect 2019-12-03 15:41:20 +01:00
bastb
6a2c361502 Additional fixes for Django 3 2019-12-03 15:37:01 +01: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
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
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