django-admin2/example/blog/admin2.py
Andrew Ingram 88418efc7b Added django admin style registration (for now)
Big changes to how things are structured, ModelAdmin2 handles its views and urls
2013-05-18 15:43:44 +02:00

11 lines
No EOL
261 B
Python

# Import your custom models
from .models import Post, Comment
from django.contrib.auth.models import User
import djadmin2
# Register each model with the admin
djadmin2.default.register(Post)
djadmin2.default.register(Comment)
djadmin2.default.register(User)