From: alexpdp7 Date: Wed, 19 Feb 2025 19:44:53 +0000 (+0100) Subject: Add note about restricting admin lists X-Git-Url: https://xn--ix-yja.es/gitweb/?a=commitdiff_plain;h=0b75d287038f26c2a1b19213e0a9cbe704b8f96b;p=alex.git Add note about restricting admin lists --- diff --git a/programming/python/about_django.md b/programming/python/about_django.md index cf4a78d..b746801 100644 --- a/programming/python/about_django.md +++ b/programming/python/about_django.md @@ -112,3 +112,15 @@ For example: Additionally, providing an API is also useful beyond JavaScript front ends. APIs are necessary for other purposes, such as implementing mobile apps to interact with your application, or just providing an API for programmatic access to your application. + +### Some common tasks should have more tutorial content + +The Django documentation is mostly for reference, covering all Django features, but with little content on how to use Django. +The items I list below likely are documented on books, websites, forums, etc. +If you know a good source for many of those, even if it is paid, feel free to let me know to add references. + +* Admin + * Restricting users to a subset of the instances of a model. + For example, users belong to organizations and users should only see instances of some model related to their organization. + The FAQ contains [How do I limit admin access so that objects can only be edited by the users who created them?](https://docs.djangoproject.com/en/5.1/faq/admin/#how-do-i-limit-admin-access-so-that-objects-can-only-be-edited-by-the-users-who-created-them), which is a very similar question and points to the features you need to use to achieve these goals. + (These requirements are often related to requiring [extending the existing User model](https://docs.djangoproject.com/en/5.1/topics/auth/customizing/#extending-the-existing-user-model).)