Django :: Disable Delete Action :-
site-packages/django/contrib/admin/options.py :-
class BaseModelAdmin(six.with_metaclass(RenameBaseModelAdminMethods)):
def has_delete_permission(self, request, obj=None):
return False # Add this line for diable Delete Action
sites.py :-
class AdminSite(object):
def __init__(self, name='admin', app_name='admin'):
#self._actions = {'delete_selected': actions.delete_selected} # Comment this line
self._actions = {} # add this line
4 comments:
FxSound Enhancer 13.028 Crack is a powerful sound quality improvement software that provides rich, deep, clear and expanding sound.
Gihosoft Data Recovery Crack
DriverMax Pro Crack
Nexus Crack
KONTAKT Crack presents the KONTAKT Play series: new twists on the coveted sounds. Each of them places powerful and creative processing chains in a simple and intuitive interface.
Stellar Data Recovery Crack
Autodesk Mudbox 2021 Crack
Genesis Pro VST Mac
BullGuard Antivirus Crack is an antivirus that permits protection from all notice practices, for example, infections, adware, key lumberjacks, Trojans, spyware, vindictive characters.
Neat Video Crack
Soundtoys Ultimate Crack
Movavi Screen Recorder Crack
Anvsoft SynciOS Pro Crack is an amazing elective application for iTunes programming. It can completely move music documents, recordings, photographs, applications, digital books, contact records, instant messages, and so forth from Windows to iOS and Android.
Templatetoaster Crack
Fabfilter Total Bundle Crack
IObit Driver Booster Pro Crack
Post a Comment