summaryrefslogtreecommitdiff
path: root/blog/admin.py
blob: bfe2f80266030f9b26640b4509092f38519c5308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from django.contrib import admin

from .models import Post, Comment

# Register your models here.


class PostAdmin(admin.ModelAdmin):
    class Meta:
        model = Post

admin.site.register(Post, PostAdmin)


class CommentAdmin(admin.ModelAdmin):
    class Meta:
        model = Comment

admin.site.register(Comment, CommentAdmin)