mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-04-27 01:54:46 +00:00
11 lines
260 B
Python
11 lines
260 B
Python
|
|
# Import the Admin2 base class
|
||
|
|
from djadmin2.models import Admin2
|
||
|
|
|
||
|
|
# Import your custom models
|
||
|
|
from blog.models import Post, Comment
|
||
|
|
|
||
|
|
# Instantiate the Admin2 class
|
||
|
|
# Then attach the admin2 object to your model
|
||
|
|
Post.admin2 = Admin2()
|
||
|
|
Comment.admin2 = Admin2()
|