georgemarshall / django-cryptography

Easily encrypt data in Django
https://django-cryptography.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
371 stars 69 forks source link

Added Django4.0 compatability #65

Closed JaisPiyush closed 2 years ago

JaisPiyush commented 2 years ago

'django.utils.translation.ugettext_lazy' is removed since Django==4.0 in favour of 'django.utils.translation.gettext_lazy'. Added django version based conditional import of the following modules, making it backward compatible

feavilan04 commented 2 years ago

Hi everybody, please update the version to be able to use it with Django 4.

Thanks in advance.

jensenbox commented 2 years ago

This PR is better than mine - maybe we could combine them somehow?

https://github.com/georgemarshall/django-cryptography/pull/66

Yours is better because it supports backwards compatibility.

georgemarshall commented 2 years ago

Duplicates efforts in #68