mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-31 05:20:24 +00:00
11 lines
No EOL
261 B
Python
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) |