django/tests/admin_utils/admin.py

8 lines
165 B
Python
Raw Normal View History

from django.contrib import admin
from .models import Article, ArticleProxy
site = admin.AdminSite(name='admin')
site.register(Article)
site.register(ArticleProxy)