mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-16 22:20:24 +00:00
10 lines
256 B
Python
10 lines
256 B
Python
# Import the Admin2 base class
|
|
from djadmin2.models import Admin2
|
|
|
|
# Import your custom models
|
|
from .models import Post, Comment
|
|
|
|
# Instantiate the Admin2 class
|
|
# Then attach the admin2 object to your model
|
|
Post.admin2 = Admin2()
|
|
Comment.admin2 = Admin2()
|