10 lines
232 B
Python
10 lines
232 B
Python
from django.contrib import admin
|
|
from .models import Post
|
|
# Register your models here.
|
|
from .forms import MyPostForm
|
|
|
|
class MyPostAdmin(admin.ModelAdmin):
|
|
form = MyPostForm
|
|
model = Post
|
|
|
|
admin.site.register(Post,MyPostAdmin) |