Johannes Wilm
a89a3fad17
Merge branch 'python_magic_validation' of github.com:miohtama/django-avatar into miohtama-python_magic_validation
2022-08-15 12:00:59 +02:00
Johannes Wilm
28302c5205
Add invalidate_cache test
2022-08-15 11:34:35 +02:00
Johannes Wilm
72c1cae345
Make get_cache_key work when there is no width/height
2022-08-15 10:44:04 +02:00
pre-commit-ci[bot]
942e08080b
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-08-15 08:32:03 +00:00
Johannes Wilm
cee893f5e3
Merge branch 'main' into fix-cached-image-sizes
2022-08-15 10:31:24 +02:00
Johannes Wilm
198946a8af
Merge branch 'master' of github.com:iMaGiNiX/django-avatar into iMaGiNiX-master
2022-08-15 10:17:24 +02:00
Johannes Wilm
99a979b057
rectangular avatars ( #214 )
...
* Support for rectangular avatars
* fix tests
* Add rectangle size test
* Update documentation and changelog
* add test for exposing username (or not)
* add primary_avatar_tag tests
* make rebuild_avatars, remove_avatar_images work with rectangles + tests
* Python 2 => 3
* fix tests
Co-authored-by: Karl Moritz Hermann <karlmoritz.hermann@gmail.com>
2022-08-15 10:08:35 +02:00
Rafiq Hilali
8017d6fc4c
Delete avatars from file storage when avatar is deleted ( #174 )
...
* added custom delete method to Avatar model inorder to delete avatars from file storage
* simplified chained expression to pass linting
* linting
* stopped using reserved keyword dir
* changed remove_avatar_images so it deletes all generated avatars
* went back to using queryset delete
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: Johannes Wilm <mail@johanneswilm.org>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-08-14 13:03:45 +02:00
Johannes Wilm
1dd993358b
AVATAR_CLEANUP_DELETED default True, relates to #181
2022-08-14 13:00:53 +02:00
Johannes Wilm
49b85b12f8
6.0.1
2022-08-12 07:23:26 +02:00
Johannes Wilm
47bd6f36ac
6.0.0
2022-08-12 07:01:23 +02:00
Johannes Wilm
58aa1261ad
always convert JPEG/RGBA to JPEG/RGB
2022-08-11 08:36:24 +02:00
Johannes Wilm
2fb3034505
make AVATAR_THUMB_MODES configurable, solves #153 , #180
2022-08-10 19:02:07 +02:00
Johannes Wilm
ab7e9c687e
make PNG default thumbnail format, based on discussion in #180
2022-08-10 18:46:09 +02:00
Johannes Wilm
5452d4ea34
Merge branch 'eureka_pub' of github.com:caumons/django-avatar into caumons-eureka_pub
2022-08-10 17:53:32 +02:00
pre-commit-ci[bot]
c8bcdb4a0c
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-08-10 15:45:56 +00:00
Johannes Wilm
e8fa4747f9
Merge branch 'main' into tmploverride
2022-08-10 17:45:47 +02:00
Johannes Wilm
7d276ead7a
Don't expose user names through alt tags, solves #189 , solves #188 , relates to #181
2022-08-10 17:29:30 +02:00
Johannes Wilm
3e12122a9c
make default for AVATAR_EXPOSE_USERNAMES False. Relates to #181
2022-08-10 17:24:00 +02:00
John Vandenberg
bc05f97c93
Merge branch 'main' into master
2022-08-10 07:50:03 +08:00
Johannes Wilm
114a154668
compile translation files, replaces #192
2022-08-09 23:24:52 +02:00
Johannes Wilm
daa47442e5
Merge pull request #194 from mh-firouzjah/master
...
add translation support for persian/farsi
2022-08-09 23:21:31 +02:00
Johannes Wilm
6ccc046386
fix error type
2022-08-09 21:25:00 +02:00
Johannes Wilm
a977753b2c
lint and add pre-commit configuration
2022-08-09 21:17:24 +02:00
Johannes Wilm
dab8741bed
remove more six
2022-07-16 23:27:15 +02:00
Johannes Wilm
6ba1280a7e
remove six
2022-07-16 23:25:43 +02:00
Johannes Wilm
3dd349b577
black
2022-07-16 23:18:09 +02:00
Johannes Wilm
8f94d125b3
switch to github actions
2022-07-16 23:02:49 +02:00
Johannes Wilm
ae950c9b50
black
2022-07-16 22:50:05 +02:00
Johannes Wilm
a131861589
Merge branch 'django4.0' of github.com:johanneswilm/django-avatar
2022-07-16 22:27:50 +02:00
Johannes Wilm
03c95bc925
update imports
2022-07-16 22:26:58 +02:00
Johannes Wilm
a1aae28859
Merge branch 'master' of github.com:ntoll/django-avatar into django4.0
2022-05-11 11:52:38 +02:00
Johannes Wilm
288f3cacf2
Merge branch 'patch-1' of github.com:rsp2k/django-avatar into django4.0
2022-05-11 11:47:28 +02:00
rsp2k
61f135fa71
Django 4.0: ugettext -> gettext
2022-01-27 13:33:44 -07:00
rsp2k
12a6d65454
Update forms.py
2022-01-27 13:22:00 -07:00
rsp2k
be9187fb62
Update views.py
2022-01-27 13:20:33 -07:00
rsp2k
346530c14c
Django 4.0: url -> re_path
...
https://docs.djangoproject.com/en/4.0/ref/urls/#re-path
2022-01-27 13:16:55 -07:00
rsp2k
9fd68769c8
Django 4.0: Signal -> providing_args deprecated
...
https://docs.djangoproject.com/en/4.0/releases/3.1/#id2
2022-01-27 13:06:16 -07:00
rsp2k
d941939441
Django 4.0: ugettext_lazy -> gettext_lazy
2022-01-27 13:03:33 -07:00
rsp2k
ec6f8bbf2b
Django 4.0: force_text -> force_str
...
https://docs.djangoproject.com/en/4.0/ref/utils/#module-django.utils.encoding
2022-01-27 12:56:09 -07:00
rsp2k
623f529a0b
Django 4.0: ugettext_lazy -> gettext_lazy
...
ugettext_lazy` was deprecated in v2.2 and no longer used in django v3
https://docs.djangoproject.com/en/4.0/releases/4.0/#features-removed-in-4-0
2022-01-27 12:44:39 -07:00
Nicholas H.Tollervey
68340e8ac6
Update to work with Django 4.0. Based upon PR #201 .
2022-01-27 18:41:45 +00:00
Johannes Wilm
348fade5a8
Merge branch 'original-file-default' of github.com:johanneswilm/django-avatar
2021-06-25 14:53:51 +02:00
Johannes Wilm
85218b0403
Make Django 3.2 compatible
2021-06-25 14:50:44 +02:00
Mahdi Firouzjaah
2917cc5690
Add files via upload
2020-12-16 20:13:11 +03:30
Mahdi Firouzjaah
22cb67fd23
Create django.po
2020-12-16 20:12:50 +03:30
Johannes Wilm
53b7fa2265
use original file as default
...
If thumbnail creation fails but the original files could be read, save the original file as the thumbnail.
2020-03-02 18:47:00 +01:00
Grant McConnaughey
3f4a8d284e
Bump version to 5.0.0
2020-01-04 16:00:34 -06:00
Grant McConnaughey
ce56f6a104
Merge pull request #177 from rafiqhilali/avatar-deletion-storage-bug
...
Avatar storage deletion bug
2020-01-04 11:41:27 -06:00
bastb
805920e521
Yet another attempt
2019-12-03 15:43:31 +01:00