21 lines
554 B
Python
21 lines
554 B
Python
from django.contrib import admin
|
|
from .models import Organization, Device, Network, Model, Wifi
|
|
|
|
admin.site.register(Organization)
|
|
admin.site.register(Device)
|
|
admin.site.register(Network)
|
|
admin.site.register(Model)
|
|
admin.site.register(Wifi)
|
|
|
|
from django.contrib.auth.models import Group
|
|
|
|
admin.site.unregister(Group)
|
|
|
|
from two_factor.models import PhoneDevice
|
|
|
|
admin.site.unregister(PhoneDevice)
|
|
|
|
from django_otp.plugins import otp_totp, otp_static
|
|
|
|
admin.site.unregister(otp_totp.models.TOTPDevice)
|
|
admin.site.unregister(otp_static.models.StaticDevice)
|