from django.contrib import admin
from project_first_app.models import *
# Register your models here.
admin.site.register(Hotel)
@admin.register(Comment)
class CommentAdmin(admin.ModelAdmin):
    list_display = ('name', 'email', 'post', 'created', 'active')
    list_filter = ('active', 'created', 'updated')
    search_fields = ('name', 'email', 'body')
from django.contrib import admin
from project_first_app.models import *
# Register your models here.
admin.site.register(Hotel)
@admin.register(Comment)
class CommentAdmin(admin.ModelAdmin):
    list_display = ('name', 'email', 'post', 'created', 'active')
    list_filter = ('active', 'created', 'updated')
    search_fields = ('name', 'email', 'body')
# Register your models here.