Skip to content

Commit 8e05948

Browse files
committed
Update warning to use consistent syntax
1 parent 199e5a9 commit 8e05948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-guide/viewsets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Typically we wouldn't do this, but would instead register the viewset with a rou
5757
router.register(r'users', UserViewSet, basename='user')
5858
urlpatterns = router.urls
5959

60-
> **Warning**: Do not use `.as_view()` with `@action` methods. It bypasses router setup and may ignore action settings like `permission_classes`. Use `DefaultRouter` for actions.
60+
**Warning**: Do not use `.as_view()` with `@action` methods. It bypasses router setup and may ignore action settings like `permission_classes`. Use `DefaultRouter` for actions.
6161

6262
Rather than writing your own viewsets, you'll often want to use the existing base classes that provide a default set of behavior. For example:
6363

0 commit comments

Comments
 (0)