django1/tests/admin_autodiscover/admin.py

7 lines
124 B
Python

from django.contrib import admin
from .models import Story
admin.site.register(Story)
raise Exception("Bad admin module")