I'ved got this warning in Django 3.1.5 when doing the migration from 1.11
?: (2_0.W001) Your URL pattern 'employee/attendanceactivity/attendance/(?P<attendance_id>\d+)/' [name='employee-attendanceactivity-detail'] has a route that contains '(?P<', begins with a '^', or ends with a '$'. This was likely an oversight when migrating to django.urls.path().
here is the statement from url.py
path('employee/attendanceactivity/attendance/(?P<attendance_id>\d+)/',
views.employee_attendanceactivity_detail, name = 'employee-attendanceactivity-detail'),
How should I fix this warning ? Thanks