81046/in-django-admin-how-do-i-disable-the-delete-link
Hello @kartik,
Simple you can use this code:
class DeleteNotAllowedModelAdmin(admin.ModelAdmin): # Other stuff here def has_delete_permission(self, request, obj=None): return False
Hope it helps!! ThanK you!
can you tell me the procedure for ...READ MORE
You can use np.maximum.reduceat: >>> _, idx = np.unique(g, ...READ MORE
Hi, it is pretty simple, to be ...READ MORE
Hi, good question. If you are considering ...READ MORE
Hi, there is only that way and ...READ MORE
Hi all, with regard to the above ...READ MORE
Hello @kartik, To turn off foreign key constraint ...READ MORE
Hello @kartik, Let's say you have this important ...READ MORE
Hello @kartik, Set show_change_link to True (False by default) in your inline ...READ MORE
Hello @kartik, To be more specific, in admin.py of any ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.