zsoldosp / django-currentuser

Conveniently store reference to request user on thread/db level.
BSD 3-Clause "New" or "Revised" License
141 stars 40 forks source link

Resolve RemovedInDjango40Warning warning in Django 3 #44

Closed fgs-dbudwin closed 3 years ago

fgs-dbudwin commented 3 years ago

Using Django version 3.* with this library will cause the following warning to be displayed:

lib/python3.8/site-packages/django_currentuser/db/models/fields.py:13: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().

This simple pull request fixes the warning by implementing the fix suggested by Django.

belugame commented 3 years ago

Thank you for the fix :+1: Would be great if you increase the bugfix version for a new release

fgs-dbudwin commented 3 years ago

Will do, I'll do it first thing in the morning.

fgs-dbudwin commented 3 years ago

@belugame I updated this PR with the incremented version number--please let me know if I can assist further.

belugame commented 3 years ago

great, thank you for the contribution. Once the build has passed i will merge and release