-
-
Save maxwellamaral/677c6920ecd7f3679da39b7b0d9aaad1 to your computer and use it in GitHub Desktop.
Para retirar o botão 'Novo' do Django Admin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@admin.register(NotificationType) | |
class NotificationTypeAdmin(admin.ModelAdmin): | |
model = NotificationType | |
(...) | |
def has_add_permission(self, request, obj=None): | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment