django-rest-invitations icon indicating copy to clipboard operation
django-rest-invitations copied to clipboard

Silence deprecation warnings for Django 4

Open darylyu opened this issue 4 years ago • 3 comments

Removes these two warnings:

rest_invitations/urls.py:12: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path().
rest_invitations/serializers.py:17: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().

darylyu avatar Apr 22 '21 01:04 darylyu

Pull Request Test Coverage Report for Build 51

  • 3 of 3 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.09%) to 85.802%

Totals Coverage Status
Change from base Build 49: 0.09%
Covered Lines: 139
Relevant Lines: 162

💛 - Coveralls

coveralls avatar Apr 22 '21 01:04 coveralls

Pull Request Test Coverage Report for Build 53

  • 3 of 3 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.09%) to 85.802%

Totals Coverage Status
Change from base Build 49: 0.09%
Covered Lines: 139
Relevant Lines: 162

💛 - Coveralls

coveralls avatar Apr 22 '21 01:04 coveralls

I'm checking out this warning from the Travis builds:

WARNINGS:

?: (2_0.W001) Your URL pattern '^invitations/accept-invite/(?P<key>\w+)/?$' [name='accept-invite'] has a route that contains '(?P<', begins with a '^', or ends with a '$'. This was likely an oversight when migrating to django.urls.path().

darylyu avatar Apr 22 '21 01:04 darylyu