from django.contrib import admin from .models import UncloudProvider, UncloudNetwork for m in [ UncloudProvider, UncloudNetwork ]: admin.site.register(m)