Commit graph

388 commits

Author SHA1 Message Date
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
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
bastb
2793ff0830 Fixes the Django 3.0 six issue 2019-12-03 08:16:14 +01:00
Rafiq Hilali
15879af5ce fixed storage deletion bug 2019-02-11 17:12:11 +00:00
Rafiq Hilali
0e66ae5de7 simplified chained comparison 2019-02-08 10:03:23 +00:00
Rafiq Hilali
10ee97b902 cached the sizes of avatars that have been added to the cache, and then used these cached sizes to clear the cache in invalidate_cache 2019-02-07 16:27:18 +00:00
Ricardo Garcia Silva
a26a133d9d
use the lazy version of gettext for translating models 2018-07-02 12:08:00 +01:00
Grant McConnaughey
f1266ed1eb Bump version 2017-12-20 09:22:33 -06:00
Grant McConnaughey
2de2a60e85 Fix conflicts 2017-12-17 10:24:02 -06:00
Grant McConnaughey
f940db8dc9
Merge pull request #162 from sedlar/signal_avatar_deleted
Add avatar_deleted signal
2017-12-17 10:22:31 -06:00
Grant McConnaughey
10e0853152 Support Django 1.9 2017-12-17 10:17:27 -06:00
Clement Cavanier
69901569a3 Support for Django 2 2017-12-06 15:06:45 +01:00
Martin Sedlář
fb195a570f Add avatar_deleted signal 2017-11-09 23:20:59 +01:00
Duda Nogueira
f31a9ae092 Confirm delete template: only show selection avatar paragraph when avatars are available. 2017-09-06 15:46:07 -03:00
Fabian Stehle
dcabd11e43 Fix invalid translations
'msgid' and 'msgstr' entries do not both end with '\n' which is
mandatory according to specification from the 'msgfmt' manual:

```
The msgid and msgstr strings are studied and compared. It is considered
abnormal if one string starts or ends with a newline while the other
does not.
```

Besides all placeholders from the 'msgid' must be used in the 'mgstr'.
2017-08-27 08:47:26 -05:00
Grant McConnaughey
f8716937b0 Prevented creation of the new migrations with non-default DEFAULT_FILE_STORAGE 2017-08-27 08:45:45 -05:00
Arne Holzenburg
341732a38c Transpose based on EXIF orientation
Transpose the original image before resizing based on EXIF orientation
information to display image in the correct orientation. If someone
uploads an image from an iPhone (for example) the image is currently
often rendered in the wrong orientation.
2017-07-11 14:42:55 +02:00
Grant McConnaughey
cf97804f23 Bump version to 4.0.0 2017-05-27 09:58:55 -05:00
Bruno Santeramo
5ffa8a443a Italian translation 2017-05-27 09:53:19 -05:00
Jannis
6091dd90fe Add blank line to resolve failing PEP8 check. 2017-05-27 09:50:47 -05:00
Jannis
51375039df Move alt attribute to kwargs. 2017-05-27 09:50:47 -05:00
Jannis
c1f7abd2e4 Add test for kwargs in template tag. 2017-05-27 09:50:47 -05:00
Raphael Lechner
7f974b87c2 Fix for django >= 1.10
The class django.core.management.NoArgsCommand is removed.
2016-12-28 20:45:00 +01:00
reidransom
55be600311 lint fixes 2016-10-29 15:26:36 -04:00
reidransom
0e87dc2f82 Allow provider to override template_name and context
Also an example provider which renders the user's initals against
a randomly colored background.
2016-10-29 15:09:57 -04:00
Grant McConnaughey
e5d488a08d Merge pull request #138 from jnns/german-translation
Improve German translation.
2016-10-07 07:21:03 -05:00
Jannis
112141a457 Add verbose_names to Avatar model. 2016-09-16 10:55:13 +02:00
Jannis
a19debce22 Improve German translation. 2016-09-14 13:10:29 +02:00
Jannis
dc145ed57a Introduce avatar providers. 2016-09-14 12:44:22 +02:00
Grant McConnaughey
0c16c0cbe2 Set version 3.1.0 2016-09-10 11:05:36 -05:00
Christian Sauer
0f492e3bf4 Smallest/Fastest/Easiest/Least Invasive way to get custom templates 2016-08-04 17:31:04 -04:00
Ali Karbassi
9de22c00c4 Maintain verbosity settings.
Fixes #20
2016-04-20 18:40:22 -05:00
Hsinfu Huang
9ab18a72d8 add feature of customizing the attribute of avatar img 2016-03-22 19:11:45 +08:00
Grant McConnaughey
65d8d1ea39 Merge branch 'master' of https://github.com/grantmcconnaughey/django-avatar 2016-02-26 10:45:52 -06:00
Grant McConnaughey
8a8330b691 Bump version to 3.0.0 2016-02-26 10:45:21 -06:00
Orion Buske
d974f45cab Added GRAVITAR_FORCEDEFAULT setting 2016-02-11 12:51:59 -05:00
Grant McConnaughey
5cbd095cda Rename util -> utils, fix URL issue 2016-02-09 09:42:29 -06:00
Grant McConnaughey
a6b4c2beea Merge pull request #75 from z4r/patch-1
Preserve RGBA image.mode
2016-02-09 09:17:52 -06:00
Grant McConnaughey
c2a5cec2bf Added documentation for new settings 2016-02-09 09:06:16 -06:00
Grant McConnaughey
b10197ac5a Merge pull request #105 from barbuza/master
`EXPOSE_USERNAMES` prevents sensitive information leakage
2016-02-09 08:46:17 -06:00
Kaspars Sprogis
cdb7974054 New setting to specify path to a method for avatar file path
handling. Solves problems related to custom deployments and
directory paths: #10 #9.
2016-02-08 22:01:12 +02:00
Grant McConnaughey
86a1e59a4d Remove unused views 2016-01-19 10:12:28 -06:00
Grant McConnaughey
16abb5d50b Update tests, invalidate cache after changing avatar 2016-01-19 10:00:34 -06:00
Victor Kotseruba
0aaa59e0a7 RANDOMIZE_HASHES option 2016-01-18 18:57:41 +08:00
Victor Kotseruba
724a478738 disable cache option 2016-01-18 18:14:15 +08:00
Grant McConnaughey
a292ad06cb Set version 2.2.1 2016-01-11 23:01:06 -06:00
Johannes Wilm
6b1aa840f8 remove patterns import 2016-01-04 16:15:30 +01:00
Johannes Wilm
af45e43c46 Remove replace urlpatterns with simple array, make compatible with Django 1.9 2016-01-03 16:10:24 +01:00
Johannes Wilm
7a1435557f one fix errors in Brazilian translation file 2016-01-03 16:08:31 +01:00
Johannes Wilm
4fd5c60a32 fix two errors in Brazilian translation file 2016-01-03 16:06:05 +01:00
Victor Kotseruba
c9c1873382 facebook backup 2015-12-21 19:44:43 +08:00
toogy
d182c83e0f Fixing getattr 2015-12-20 20:30:37 -08:00
toogy
10c9e8af0d Fix GRAVATAR_FIELD > AVATAR_GRAVATAR_FIELD 2015-12-20 20:30:37 -08:00
toogy
6ac3e46a81 Adding the AVATAR_GRAVATAR_FIELD setting to define the user field used to get
the gravatar email.
2015-12-20 20:30:37 -08:00
Grant McConnaughey
295bfc4148 Set version 2.2.0 2015-12-02 09:58:46 -06:00
Grant McConnaughey
a258377207 Revert unique user/primary pair 2015-10-23 09:33:10 -05:00
Grant McConnaughey
b14fe1624a Remove unnecessary try/except on import 2015-10-23 09:08:19 -05:00
Grant McConnaughey
1cad3fc8aa Update changelog, use Django 1.9b1 for tests 2015-10-23 08:57:23 -05:00
Grant McConnaughey
b6edb17824 Merge pull request #111 from dannybrowne86/master
added database-level enforcement of unique user+primary pair in Avatar model
2015-10-23 08:54:34 -05:00
Grant McConnaughey
884210b957 Don't need south migrations anymore 2015-09-24 13:41:12 -05:00
Grant McConnaughey
6db33fe977 Remove strings in urls.py 2015-09-24 13:35:40 -05:00
Grant McConnaughey
0972a4bbe4 Remove load url from future 2015-09-24 10:32:56 -05:00
Danny Browne
00cc973d47 added django migration 2015-09-04 13:14:14 -04:00
Danny Browne
1c56ed5dbc added database-level enforcement of unique user+primary pair in Avatar model 2015-09-04 12:58:32 -04:00
teolemon
c66e2c2fa8 translate string in French 2015-08-11 21:15:10 +02:00
Grant McConnaughey
7fdcd98410 Set version 2.1.1 2015-08-10 09:42:32 -05:00
Grant McConnaughey
6d2ad4a8bd Add back load url from future, will remove when 1.9 is out 2015-07-23 10:03:04 -05:00
Grant McConnaughey
be8a172e56 Remove load url from future 2015-07-23 08:43:15 -05:00
Kaloian Minkov
97b1ffd020 Add Django 1.8+ style Meta app_label to Avatar model to prevent RemovedInDjango19Warning 2015-07-23 11:23:33 +03:00
Adam Dobrawy
73ad17491e Fix typo in polish locale 2015-07-19 15:46:27 +02:00