mirror of
https://github.com/house-of-vanity/OutFleet.git
synced 2025-08-21 14:37:16 +00:00
Xray works.
This commit is contained in:
@@ -100,8 +100,14 @@ class CredentialsAdmin(admin.ModelAdmin):
|
||||
return '-'
|
||||
credentials_display.short_description = 'Credentials (Preview)'
|
||||
|
||||
# Credentials admin is available through Certificate admin only
|
||||
# Do not register directly to avoid showing in main menu
|
||||
# Register Credentials admin but hide from main menu for Django + button functionality
|
||||
@admin.register(Credentials)
|
||||
class CredentialsHiddenAdmin(CredentialsAdmin):
|
||||
"""Credentials admin hidden from main menu but available for + button"""
|
||||
|
||||
def has_module_permission(self, request):
|
||||
"""Hide this model from the main admin index"""
|
||||
return False
|
||||
|
||||
|
||||
@admin.register(Certificate)
|
||||
|
Reference in New Issue
Block a user