from django.contrib.admin.views.decorators import staff_member_required
from django.urls import re_path
from flatblocks.views import edit

urlpatterns = [
    re_path("^edit/(?P<pk>\d+)/$", staff_member_required(edit), name="flatblocks-edit"),
]

from django.contrib.admin.views.decorators import staff_member_required
from django.urls import re_path
from flatblocks.views import edit

urlpatterns = [
    re_path(
        r"^edit/(?P<pk>\d+)/$",
        staff_member_required(edit),
        name="flatblocks-edit",
    ),
]

Use raw string notation for regular expression.
Use raw string notation for regular expression.

  from django.contrib.admin.views.decorators import staff_member_required
  from django.urls import re_path
  from flatblocks.views import edit
  
  urlpatterns = [
-     re_path("^edit/(?P<pk>\d+)/$", staff_member_required(edit), name="flatblocks-edit"),
+     re_path(
+         r"^edit/(?P<pk>\d+)/$",
+         staff_member_required(edit),
+         name="flatblocks-edit",
+     ),
  ]
  
Use raw string notation for regular expression.
## Code Before:
from django.contrib.admin.views.decorators import staff_member_required
from django.urls import re_path
from flatblocks.views import edit

urlpatterns = [
    re_path("^edit/(?P<pk>\d+)/$", staff_member_required(edit), name="flatblocks-edit"),
]

## Instruction:
Use raw string notation for regular expression.
## Code After:
from django.contrib.admin.views.decorators import staff_member_required
from django.urls import re_path
from flatblocks.views import edit

urlpatterns = [
    re_path(
        r"^edit/(?P<pk>\d+)/$",
        staff_member_required(edit),
        name="flatblocks-edit",
    ),
]
