mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-26 09:09:09 +02:00
20 lines
349 B
Python
20 lines
349 B
Python
|
from django.contrib import admin
|
||
|
|
||
|
|
||
|
from .models import (
|
||
|
IpStatus,
|
||
|
Net,
|
||
|
)
|
||
|
|
||
|
|
||
|
class IpStatusAdmin(admin.ModelAdmin):
|
||
|
def get_model_perms(self, request):
|
||
|
"""
|
||
|
Return empty perms dict thus hiding the model from admin index.
|
||
|
"""
|
||
|
return {}
|
||
|
|
||
|
|
||
|
admin.site.register(IpStatus, IpStatusAdmin)
|
||
|
admin.site.register(Net)
|