from django.contrib import admin
from .models import Images,Comments,Profile
# Register your models here.

class CommentInline(admin.TabularInline):
    model=Comments
    extra=3
    
class ImageInline(admin.ModelAdmin):
    fieldsets=[
        (None,{'fields':['image']}),
        (None,{'fields':['image_name']}),
        (None,{'fields':['image_caption']}),
        (None,{'fields':['likes']}),
    ]
    inlines=[CommentInline]
    
    
admin.site.site_header='InstaPost Admin'
admin.site.site_title='InstaPost Admin Dashboard'

admin.site.register(Images,ImageInline)
admin.site.register(Profile)


[(22, 'django.contrib.admin.site.register', 'admin.site.register', False, 'from django.contrib import admin\n'), (23, 'django.contrib.admin.site.register', 'admin.site.register', False, 'from django.contrib import admin\n')]