Django Admin User Model Permission Overrides & Performing Extra Operations

preview_player
Показать описание
The Django Admin site provides a rich set of features accessible in every Django project. In fact one of the best features of Django is the Django Admin Site. This series focuses on the Customisation, Hooks, Features, Functions, Adaptions that can be performed in the Django Admin Site. In this tutorial we look at how to create simple permissions to override user permissions in the admin area and perform extra operations on actions such as deleting an item.

00:00 Introduction
Part 1 - Django Setup
02:21 Start a new project and prepare for tutorial
Part 2 - ModelAdmin Permissions
10:58 Applying permissions
Part 3 - Extending Functionality
20:01 Building or extending permission functionality

Code Repository

✨ Support us - join us as a very academy member

👍SUBSCRIBE to get more free tutorials, courses and code snippets!

👍👍Follow us on Facebook

👍👍👍Follow use on Twitter:
Рекомендации по теме
Комментарии
Автор

Thank you for putting out such a very informative you!!!

sedoid
Автор

16:01 how smoothly you tackled the error.
Oh, so there is a change.

While me : oh my god, what is this error, where it came from .I have written everything correct 😭.

MrRahul
Автор

Amazing tutorial...thank you so much sir you’re helping me a lot to achieve my learning targets! 🙃 keep up the great work 👍

CoCo-yzjh
Автор

your back!!
didn't saw you were uploading again
last i did was the graphql series

thanks for your contributions
let's gooo !

professionalfacepuncher
Автор

could you please make a tutorials on assigning roles to different users in a function or through decorators

omoregbeekhator
Автор

0 Dislikes wow. Damn.. You are awesome... MAN...

ajinzrathod
Автор

Great work Zander. It would be great to see how you would approach a wiki where users can suggest updates which an editor would need to approve before they would be pushed to live.

SeanOConnor
Автор

This was really helpful. These methods should only return True or False.

avaricefalls
Автор

I'm just wondering can you for example in the (post group - add/delete/change/view are true ) limit a certain users permission to only delete a post while he is a member of that group or do you have to give him a custom permission and take him out of the group
.
.
so for more clarification is it possible to make a group of post editors with members who have different permissions to the post object
for example : Post Group -> user1 (can only change posts), user2 ( can change and delete posts)...

potatoesama
Автор

as staff user, Instead of changing post, what if we change user but I don't want staff user to change other user permission or making himself superuser(only change name field) how do we do that ?

CrackerWeb
Автор

hi, does it work with a completely brand-new template? I mean this override feature can work outside django admin? because Im replicating the django user, group & permissions in my own template, not default admin dashboard.

amidamarurookie
Автор

How can auto select a foreign key in a Django form which must be hidden, some people says grab from url but the project I use generics cbv, so confused thanks for your mission, help me a lot

jhoanmartinezsilva
Автор

Sir, thank you for your videos. I have a question. How to make tree in the django admin? I tried to use django-mptt but they have limitations big trees (more than a few hundred nodes)

tynnikov
Автор

how make dynamically generated tree Categories

ex.com/Parfüm/Herren


And how can I display all products that are in one category. By the way, is it possible to show all items that belong to one parent category if sorting by that parent cat.?

ahmedaz
Автор

is there a way to link custom admin site in HTML with a button? I tried using {{ url 'name' }} but it does not work and saw online to use {{ url 'admin:index' }} but I still need my main admin page as well..

fah
Автор

Could you please explain how to get user id from an uid and token for a user who is not logged in, but has account in the database

neharamakanth