Skip to content

Commit 069c701

Browse files
authored
Update docs to maintained djangorestframework-guardian2 (#8817)
* Update docs to maintained django-rest-framework-guardian2 * Update to updated GitHub project name
1 parent b3d2753 commit 069c701

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/api-guide/permissions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ As with `DjangoModelPermissions` you can use custom model permissions by overrid
201201

202202
---
203203

204-
**Note**: If you need object level `view` permissions for `GET`, `HEAD` and `OPTIONS` requests and are using django-guardian for your object-level permissions backend, you'll want to consider using the `DjangoObjectPermissionsFilter` class provided by the [`djangorestframework-guardian` package][django-rest-framework-guardian]. It ensures that list endpoints only return results including objects for which the user has appropriate view permissions.
204+
**Note**: If you need object level `view` permissions for `GET`, `HEAD` and `OPTIONS` requests and are using django-guardian for your object-level permissions backend, you'll want to consider using the `DjangoObjectPermissionsFilter` class provided by the [`djangorestframework-guardian2` package][django-rest-framework-guardian2]. It ensures that list endpoints only return results including objects for which the user has appropriate view permissions.
205205

206206
---
207207

@@ -356,6 +356,6 @@ The [Django Rest Framework PSQ][drf-psq] package is an extension that gives supp
356356
[rest-framework-roles]: https://github.com/Pithikos/rest-framework-roles
357357
[djangorestframework-api-key]: https://florimondmanca.github.io/djangorestframework-api-key/
358358
[django-rest-framework-role-filters]: https://github.com/allisson/django-rest-framework-role-filters
359-
[django-rest-framework-guardian]: https://github.com/rpkilby/django-rest-framework-guardian
359+
[django-rest-framework-guardian2]: https://github.com/johnthagen/django-rest-framework-guardian2
360360
[drf-access-policy]: https://github.com/rsinger86/drf-access-policy
361361
[drf-psq]: https://github.com/drf-psq/drf-psq

docs/community/third-party-packages.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ To submit new content, [open an issue][drf-create-issue] or [create a pull reque
121121
* [djangorestframework-chain][djangorestframework-chain] - Allows arbitrary chaining of both relations and lookup filters.
122122
* [django-url-filter][django-url-filter] - Allows a safe way to filter data via human-friendly URLs. It is a generic library which is not tied to DRF but it provides easy integration with DRF.
123123
* [drf-url-filter][drf-url-filter] is a simple Django app to apply filters on drf `ModelViewSet`'s `Queryset` in a clean, simple and configurable way. It also supports validations on incoming query params and their values.
124-
* [django-rest-framework-guardian][django-rest-framework-guardian] - Provides integration with django-guardian, including the `DjangoObjectPermissionsFilter` previously found in DRF.
124+
* [django-rest-framework-guardian2][django-rest-framework-guardian2] - Provides integration with django-guardian, including the `DjangoObjectPermissionsFilter` previously found in DRF.
125125

126126
### Misc
127127

@@ -229,7 +229,7 @@ To submit new content, [open an issue][drf-create-issue] or [create a pull reque
229229
[djangorestframework-dataclasses]: https://github.com/oxan/djangorestframework-dataclasses
230230
[django-restql]: https://github.com/yezyilomo/django-restql
231231
[djangorestframework-mvt]: https://github.com/corteva/djangorestframework-mvt
232-
[django-rest-framework-guardian]: https://github.com/rpkilby/django-rest-framework-guardian
232+
[django-rest-framework-guardian2]: https://github.com/johnthagen/django-rest-framework-guardian2
233233
[drf-viewset-profiler]: https://github.com/fvlima/drf-viewset-profiler
234234
[djangorestframework-features]: https://github.com/cloudcode-hungary/django-rest-framework-features/
235235
[django-elasticsearch-dsl-drf]: https://github.com/barseghyanartur/django-elasticsearch-dsl-drf

0 commit comments

Comments
 (0)